Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
FTP batch file
Name: Sokko Date: January 3, 2004 at 08:05:27 Pacific OS: XP Home
Comment:
I want to make a batch file that takes a file as a parameter, then connects to a predetermined FTP server and uploads the indicated file, then quits. The only problem is, the commands within the batch file are interpreted only by the command interpreter, and execution halts as soon as control is switched to the FTP client. Is there a way to do the operation described above?
Name: Code One Date: January 3, 2004 at 09:24:14 Pacific
Reply:
you have to make a txt file that holds the ftp commands, and associate it within the batch file.
code one
0
Response Number 2
Name: Sokko Date: January 3, 2004 at 11:39:33 Pacific
Reply:
Okay, I figured out what you meant by that (create a FTP script file and run it with the batch file), but that still begs the question of how I pass the file parameter from the batch file to the script, allowing to upload an arbitrary file to the server.
0
Response Number 3
Name: Sokko Date: January 3, 2004 at 11:56:01 Pacific
Reply:
Nevermind, I figured it out; using the batch file, you create a temporary script file that includes the parameter passed to the batch file, then run it and delete it afterwards.
0
Response Number 4
Name: Code One Date: January 3, 2004 at 12:39:31 Pacific
Reply:
or you can make a series of FTP scripts and associate them within one batch file, kinda like making your own ftp software. In my opinion it's tons quicker and more sufficent.
:)
code one
0
Response Number 5
Name: Code One Date: January 3, 2004 at 12:41:25 Pacific
Reply:
oh and you can set em up to be edited in the dos editor, so you dont have to keep throwing them away.
Summary: I am trying to write a batch file that will download a series of files from a secure server using an FTP client. These files are hidden from an ordinary FTP client, so I have to download them using a...
Summary: Hi Guys i need to create a batch file that can connect to multiple ftp servers to extract a file to one location. Not sure if this is possible but i was thinking in terms of using variables to list th...
Summary: I was wondering if there is a way to run a batch file that would open IE to a page (This part I know already) Search a page for a file type Download the file to a preselected location and then Close ...