S
Sridhar P via OfficeKB.com
Hi
I have created one text file and one batch file.
In ftp.txt file, I have written some FTP commands and through ftp.bat file, I
am executing that file.
The output of FTP steps in ftp.txt are stored in ftp_out.txt.
When I double click on ftp.bat file, I am not able to execute my ftp commands
successfully. I am giving ftp_out.txt below.
Can anybody help me.
My files are as follows.
ftp.txt
-------
SecomRepData
SIS\fSecomRepData
ONNDO1uu
cd SecomRepData
cd Server
cd "SECOM TEST"
cd "SECOM Reports"
cd RPFE041
binary
send "C:\Documents and Settings\pls.SIS\Desktop\Temp\Narayana.doc" Narayana.
doc
bye
ftp.bat
--------
ftp -s:"C:\Documents and Settings\pls\Desktop\Temp\ftp.txt" > "C:\Documents
and Settings\pls\Desktop\Temp\ftp_out.txt"
ftp_out.txt
-------------
ftp> Invalid command.
ftp> SecomRepData
Invalid command.
ftp> SIS\fSecomRepData
Invalid command.
ftp> ONNDO1uu
Not connected.
ftp> cd SecomRepData
Not connected.
ftp> cd Server
Not connected.
ftp> cd "SECOM TEST"
Not connected.
ftp> cd "SECOM Reports"
Not connected.
ftp> cd RPFE041
Not connected.
ftp> binary
Not connected.
ftp> send "C:\Documents and Settings\pls\Desktop\Temp\Narayana.doc" Narayana.
doc
bye
I have created one text file and one batch file.
In ftp.txt file, I have written some FTP commands and through ftp.bat file, I
am executing that file.
The output of FTP steps in ftp.txt are stored in ftp_out.txt.
When I double click on ftp.bat file, I am not able to execute my ftp commands
successfully. I am giving ftp_out.txt below.
Can anybody help me.
My files are as follows.
ftp.txt
-------
SecomRepData
SIS\fSecomRepData
ONNDO1uu
cd SecomRepData
cd Server
cd "SECOM TEST"
cd "SECOM Reports"
cd RPFE041
binary
send "C:\Documents and Settings\pls.SIS\Desktop\Temp\Narayana.doc" Narayana.
doc
bye
ftp.bat
--------
ftp -s:"C:\Documents and Settings\pls\Desktop\Temp\ftp.txt" > "C:\Documents
and Settings\pls\Desktop\Temp\ftp_out.txt"
ftp_out.txt
-------------
ftp> Invalid command.
ftp> SecomRepData
Invalid command.
ftp> SIS\fSecomRepData
Invalid command.
ftp> ONNDO1uu
Not connected.
ftp> cd SecomRepData
Not connected.
ftp> cd Server
Not connected.
ftp> cd "SECOM TEST"
Not connected.
ftp> cd "SECOM Reports"
Not connected.
ftp> cd RPFE041
Not connected.
ftp> binary
Not connected.
ftp> send "C:\Documents and Settings\pls\Desktop\Temp\Narayana.doc" Narayana.
doc
bye