Topic "WinSCP console window not closing"

Author Message
Spagnot

Guest


I have a batch file that works well it's just that I have to type exit and press enter to close it and finish it's processes.
I have it download a file from an ftp site, copy it to my computer, then copies it to a different ftp location. This works fine automatically.
In the same batch file, after my 'put' command I then have:

move "C:\Users\name\Desktop\scp\testt\me1.xls" C:\Users\name\Desktop\scp\testt\backup\
RENAME "C:\Users\name\Desktop\scp\testt\backup\me1.xls" "%Date:~-4,4%-%Date:~-10,2%-%Date:~-7,2%_%time:~0,2%%time:~3,2%%time:~6,2%me1.xls"
exit

In order to have the file moved and renamed, I have to type exit and press enter in the console window. Is there anyway to do this automatically and close the console window?
Spagnot

Guest


Spagnot wrote:
I have a batch file that works well it's just that I have to type exit and press enter to close it and finish it's processes.
I have it download a file from an ftp site, copy it to my computer, then copies it to a different ftp location. This works fine automatically.
In the same batch file, after my 'put' command I then have:

move "C:\Users\name\Desktop\scp\testt\me1.xls" C:\Users\name\Desktop\scp\testt\backup\
RENAME "C:\Users\name\Desktop\scp\testt\backup\me1.xls" "%Date:~-4,4%-%Date:~-10,2%-%Date:~-7,2%_%time:~0,2%%time:~3,2%%time:~6,2%me1.xls"
exit

In order to have the file moved and renamed, I have to type exit and press enter in the console window. Is there anyway to do this automatically and close the console window?


Wow... All I needed was an "exit" command on the same line as the ftp transfer coding line. Never mind people! Wow I'm good at figuring stuff out myself...
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License