HTFC Forums

H.T.F.C.

How To Fix Computers





Go Back   HTFC Forums > Software Newsgroups > Windows XP

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1  
Old 11-09-2007, 10:51 AM
Marco
Guest
 
Posts: n/a
Default How to use command FTP.exe of windows

Hi. I need to send every day some txt file into a ftp server.

I eard that i could use FTP command of winfows with a script. anyone knows
were can I find an example?

regards,
Marco
Reply With Quote
Sponsored Links
  #2  
Old 11-09-2007, 11:33 AM
Elmo
Guest
 
Posts: n/a
Default Re: How to use command FTP.exe of windows

Marco wrote:
> Hi. I need to send every day some txt files into an ftp server.
>
> I heard that I could use FTP command of Windows with a script. Anyone know
> were I can find an example?
>
> regards,
> Marco


This Google groups search has 23,000 archived posts on the question.

http://groups.google.com/groups/sear...le&qt_s=Search

--
Joe =o)
Reply With Quote
  #3  
Old 11-09-2007, 11:40 AM
Rich Pasco
Guest
 
Posts: n/a
Default Re: How to use command FTP.exe of windows

Marco wrote:

> Hi. I need to send every day some txt file into a ftp server.
>
> I eard that i could use FTP command of winfows with a script. anyone knows
> were can I find an example?
>
> regards,
> Marco


I do this routinely.

There are two ways to do it, which differ on how to store/enter the
password for the server. Since I like to type in the password each time
I run my script, here's how I do it.

My command script (.BAT file) contains the line

ftp <upload.ftp

Where file upload.ftp contains the lines

open myserver.com
myuser
cd /pub/files
ascii
put today.txt today.txt
binary
put files.zip files.zip
put picture.jpg picture.jpg
quit

Note: After FTP reads my username "myuser" as above it will prompt me
to enter the password.

The other way to do it includes the password in the command file.
In this case, the command script (.BAT file) contains the line

ftp -s:upload.ftp

open myserver.com
myuser
mypassword
cd /pub/files
ascii
put today.txt today.txt
binary
put files.zip files.zip
put picture.jpg picture.jpg
quit

Note: The effect is the same except this time both my username "myuser"
and my password "mypassword" are read from file upload.ftp.

For more information type "ftp -?" on your command line.
I hope this helps.

- Rich
Reply With Quote
Sponsored Links
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows XP command line JarrodDeMotts Windows XP 3 11-07-2007 02:54 PM
No New Folder command in Windows Explorer menu Signosaur Windows XP 2 10-19-2007 04:05 AM
Is the command Icacls.exe available for Windows XP sp2? PDuf Windows XP 2 09-11-2007 10:46 AM
Solved: unrecognized external command error in command window FUBARinSFO Windows XP 0 06-23-2007 10:15 PM
Monitor LINUX from Windows Command LIne Shariq Siddiqui Windows XP 0 06-12-2007 08:46 AM


All times are GMT. The time now is 01:35 AM.


Powered by vBulletin® Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
2004 - 2007 Web-S-Sense Pty. Ltd. Usenet and forums posts their respective authors.
Ad Management by RedTyger