Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sending file via ftp w/ batch file 4

Status
Not open for further replies.

MikeT

IS-IT--Management
Feb 1, 2001
376
US
I need to send a file to a password protected ftp site once a day. Can I make simple .bat file to do this?

Is there a better way?
I'd like to use wget (for windows) if possible, as that is what I am using to get the file in the first place.
 
Why not just use the FTP client that came with Windows?

You use the -s switch as in:

Code:
ftp -s:ftpcmds.txt

Where ftpcmds.txt is a simple text file containing the same things you'd do interactively.

Sample:

Code:
open doxie.bvocs.com
produser
w3xcfGGkL7
put autoexec.bat removeme.bat
quit

Sample run:

Code:
ftp -s:ftpcmds.txt

Just user Windows Scheduler to run it on whatever schedule is desired. Include any GETs, PUTs, or whatever you want in the command file.

Why work harder?
 
Hi, I am using FTP to send a file to a remote location. At home (no network used) the dos program brings up the dial up window OK. In the office -an ftp message appears -unknown host. It seems the network server is looked at first, before the dial up network adapter. Do I have to remove the dial up adapter then add it again to the configuration list, so it appears first? Or is there a way of pointing a dos program to the dial up adapter?
Regards, Gary
 
I'm using this to do FTP, but I need to return a file listing (results from LS command)... how might I do this? Any ideas?
 
It looks good but whow do I use Mget in the TXT file.
Ftp asks for an Y to confirm when you do this interactive.
 
ddnvleu, you need to add a line "prompt" in your text file after the connection is established to toggle off the prompt mode. If you write the line again later, it will toggle back on.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top