How to force close cmd box on Win 10 after running script.
Hi there, so I'm a scripting virgin but have managed to get something working.
I need to use Windows Task manager to schedule downloads (not sync) every 15 mins.
The code in a standard batch file I am using is:
The whole thing runs great apart from once the batch file is executed, it finishes with:
And until a key is pressed, the task remains open meaning the next scheduled task errors out.
Any advice on how to get around this would be great.
I need to use Windows Task manager to schedule downloads (not sync) every 15 mins.
The code in a standard batch file I am using is:
# Connect to SFTP server using a password open ftp://admin%40mysitedgoeshere.com:mypasswordhere@ftp.mysitegoeshere.com/ -explicittls # Upload file get -delete /track_uploads/*.file c:\playout\import\Presenters\ # Exit WinSCP exit
Press any key to continue
Any advice on how to get around this would be great.