I'm trying to use the %ERRORLEVEL% environment variable when running coreftp within a batch file and the only result code that I get is 1 whether the transfer fails or succeeds.
Any ideas?
here is part of my batch file:
"C:\Program Files\Coreftp\Coreftp.exe" -s -site solid -t TestingPut -O
Echo Errorlevel: %ERRORLEVEL% >> C:\database\dbexport\scripts\Coreftp.log
Here is part of the coreftp.log file after a transfer completes:
CWD /htdocs/import/test/
250 OK. Current directory is /htdocs/import/test
PASV
227 Entering Passive Mode (3,40,76,10,150,50)
LIST
Connect socket #616 to 3.40.76.10, port 38450...150 Connecting to port 39983
226-Options: -a -l
226 14 matches total
TYPE A
200 TYPE is now ASCII
PASV
227 Entering Passive Mode (3,40,76,10,150,51)
STOR solid_trainer.txt
Connect socket #612 to 3.40.76.10, port 38451...150 Connecting to port 40012
solid_trainer.txt - 36179 bytes transferred
226-File successfully transferred
226 0.651 seconds (measured here), 53.88 Kbytes per second
Transfer time: 00:00:04
Total uploaded files: 1
Total uploaded data: 35 KB
Total downloaded files: 0
Total downloaded data: 0
Errorlevel: 1
Any help you can provide would be great.
command line errorlevel environment variable
-
- Posts: 5
- Joined: Mon Jun 19, 2006 9:43 pm
-
- Posts: 5
- Joined: Mon Jun 19, 2006 9:43 pm