Batch File > Javascript > WinSCP > Check if file exists
问题 I have a batch file that will launch a .js file which, via WinSCP, checks if a file exists and returns to the batch file if it does or not. The problem IS: It always returns not found, and I cannot figure out why. I am unsure how to use a wildcard in this scenario. The batch file looks like this: cscript /nologo file.js if errorlevel 1 goto notfound exit :notfound (another script to copy a file over) Only one file can exist on the server at once. So every ten min, this batch file will run,