#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Help in FTP

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


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200510/1
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Help in FTP

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!

"Sridhar P via OfficeKB.com" wrote:

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

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200510/1


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:21 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"