Link to home
Start Free TrialLog in
Avatar of String :-)
String :-)Flag for Australia

asked on

Debugging my windows FTP batch file

Hi Folks
I need help debugging an FTP script i am working on. This works fine when using Command Prompt, but fails using batch file. Running on a Server 2003 server, SP2.

Names\passwords in the files have been changed to protect identity.


Contents of punchboxFTPScript.bat
ftp –s:punchboxFTP.txt


Contents of punchboxFTP.txt
open ftp.punchbox.com
judyFTP
password
hash
PASV
lcd E:\punchBoxFTP\ReadytoSend
cd judyUploads
mput *
bye

The failure is shown in the screendump attached

Many thanks for your help
best
Tom
screenshot-of-ftp-error.png
ASKER CERTIFIED SOLUTION
Avatar of DonConsolio
DonConsolio
Flag of Austria image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Once you get past that you may find a problem with the e:\ drive if you launch the batch process via schedule task and it is mapped network location rather than a local drive.
Avatar of String :-)

ASKER

Many thanks for the quick answer.
All good.
Best
Tom