Computing.Net > Forums > Programming > FTP batch file

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

Reply to Message Icon

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?



Sponsored Link
Ads by Google

Response Number 1
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.

just keep recycling info.


0

Related Posts

See More



Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: FTP batch file

FTP Batch File www.computing.net/answers/programming/ftp-batch-file/16866.html

Multiple FTP Batch File www.computing.net/answers/programming/multiple-ftp-batch-file/19189.html

Batch file for Internet Explorer www.computing.net/answers/programming/batch-file-for-internet-explorer/18946.html