Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Exiting a batch file

The problem is that when there is nothing to download, the script stops and does not exit the CMD.exe dialogue.

That's not how WinSCP behaves on its own. It must be related to how you use/run WinSCP. We need a full example.
gs1111

Exiting a batch file

I have a batch file which downloads data from a directory.
( "get -delete _MainDir/SubDir/*  D:\DestinationDir\"  )

The problem is that when there is nothing to download, the script stops and does not exit the CMD.exe dialogue.

This means that when checking every 5 minutes for data, I compound the number of cmd.exe dialogues on the screen.

I need a feature that when the system fails to find a file in the directory, the script is abandoned and I don't end up with a massive build up of cmd.exe screens