The script works when run manually, but cannot through batch
I want to synchronize the remote with the local on daily basis.
Manually, the following script works (
TNDOSSession
is a stored session):
cd c:\program files\winscp winscp.com TNDOSSession synchronize c:\TNDOS\Files /internet/safety/vendors/TNOmnigov close exit
script.txt
.
Then I constructed the following batch file as instructed, but it doesn't work.
"c:\Program Files\WinSCP3\WinSCP.exe"
/script=C:\Documents and Settings\kathrynt\Desktop\script.txt
Then, I made the
script.txt
to script.bat
, and it worked until opened the stored session, but it doesn't synchronize and exit.
I went through the FAQ, seems others having this problem too, but I don't understand the explanation there (T-T)
Please help.
Thanks so much!
Kathryn