Help in FTP

  • Thread starter Sridhar P via OfficeKB.com
  • Start date
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
 
D

Dave Peterson

I think I'd do the FTP manually and keep track of what you typed. Then build
that text file accordingly.

I would have thought that the first line in your ftp.txt file would look more
like:

open SecomRepData

But that's just a guess from a long time ago!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top