batch file in dos is irregular
Posted: 2009-01-29 10:52
I've created a Batch file with script to retreive files from my FTP server.
This batch file runs at startup. The ftp download shows irregularity with data connections.
On several reboots of the system the batchfile completes succesfully, at other startup the script stops running;
The batch file is setup as followed:
ftp -s:update.txt
unzip -qo zipfile.ZIP -d "c:\unzipped"
update.txt
open x.x.x.x
Username
Password
prompt
literal pasv
mget \APP\*.*
mget \homedir\*.*
quit
When the batchfile isn't working correctly, I see that the server has the following line:
425 Can't open data connection.
At this moment the client will "hang" in the script file and the batch file will not continue
What can I do, so the batch file will continue after the "error opening data channel"
Thank you very much in advance
Paul Spijkers
This batch file runs at startup. The ftp download shows irregularity with data connections.
On several reboots of the system the batchfile completes succesfully, at other startup the script stops running;
The batch file is setup as followed:
ftp -s:update.txt
unzip -qo zipfile.ZIP -d "c:\unzipped"
update.txt
open x.x.x.x
Username
Password
prompt
literal pasv
mget \APP\*.*
mget \homedir\*.*
quit
When the batchfile isn't working correctly, I see that the server has the following line:
425 Can't open data connection.
At this moment the client will "hang" in the script file and the batch file will not continue
What can I do, so the batch file will continue after the "error opening data channel"
Thank you very much in advance
Paul Spijkers