Help : FTP ftpactivedoc.bat
Posted: Wed Nov 19, 2003 2:17 pm
Could someone help me set this script up correctly? I get this error:
ECHO is off.
The syntax of the command is incorrect.
Tool completed with exit code 255
Here is what I have, with minor masking :
set activeFile=%1
REM ------------------------------------
@echo
set ftpascii=Z:\ftpascii.txt
set destinationDir=/export/home/xxxx/xyz
REM Build the ftp script.
REM We don't leave a space between the value & the > symbol because that space would be sent to the file
echo open FtpServer> %155.999.999.99%
echo username>> %xxxxx%
echo password>> %xxxxx%
echo cd %destinationDir%>> %ftpascii%
echo ascii>> %ftpascii%
echo hash>> %ftpascii%
echo send %1>> %ftpascii%
echo quit %1>> %ftpascii%
REM -----------------------------------
ftp -s -d:%ftpascii%
What does ftpascii do (a pipe)?
If you can show me what you have, that should be helpful.
Thanks.
ECHO is off.
The syntax of the command is incorrect.
Tool completed with exit code 255
Here is what I have, with minor masking :
set activeFile=%1
REM ------------------------------------
@echo
set ftpascii=Z:\ftpascii.txt
set destinationDir=/export/home/xxxx/xyz
REM Build the ftp script.
REM We don't leave a space between the value & the > symbol because that space would be sent to the file
echo open FtpServer> %155.999.999.99%
echo username>> %xxxxx%
echo password>> %xxxxx%
echo cd %destinationDir%>> %ftpascii%
echo ascii>> %ftpascii%
echo hash>> %ftpascii%
echo send %1>> %ftpascii%
echo quit %1>> %ftpascii%
REM -----------------------------------
ftp -s -d:%ftpascii%
What does ftpascii do (a pipe)?
If you can show me what you have, that should be helpful.
Thanks.