SoftwareTipsandTricks Forum

Go Back   SoftwareTipsandTricks Forum > Operating Systems > Windows XP
User Name
Password


FTP File transfer using a batch file. (Help)

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes

  #1  
Old 11-09-2005, 03:04 AM
teknogeek1300's Avatar
teknogeek1300 Offline
Registered User
 
Join Date: Nov 2005
Posts: 4
FTP File transfer using a batch file. (Help)

Ok, I'm designing a program that runs batch files to trasfer files via FTP using batch files. I've only gotten to the point of this:

Code:
ftp 192.168.2.4

Which just prompts me for a user name and password.


I need it to...

I need it to acess that IP, with login name, and password.
All without needing to manually give any info.

The current FTP adress that I can acess is:
"ftp://busa:sample@192.168.2.4/"


If someone could just write up a quick sample code with all of the's thing's that'd be great!
__________________
[URL=http://img42.imageshack.us/img42/4289/circuitchipsig1gif8lb.gif]My Sig[/URL]
Reply With Quote

  #2  
Old 11-09-2005, 01:35 PM
snowmonkey's Avatar
snowmonkey Offline
Registered User
 
Join Date: Jun 2003
Location: Canada
Posts: 3,355
Send a message via MSN to snowmonkey
Quote:
Originally Posted by teknogeek1300
Ok, I'm designing a program that runs batch files to trasfer files via FTP using batch files. I've only gotten to the point of this:

Code:
ftp 192.168.2.4

Which just prompts me for a user name and password.


I need it to...

I need it to acess that IP, with login name, and password.
All without needing to manually give any info.

The current FTP adress that I can acess is:
"ftp://busa:sample@192.168.2.4/"


If someone could just write up a quick sample code with all of the's thing's that'd be great!

I guess you are looking for link like this one
http://www.robvanderwoude.com/index.html

All the help you need for batch file.

Cheers
Reply With Quote

  #3  
Old 11-09-2005, 02:38 PM
TometaSoftware's Avatar
TometaSoftware Offline
Registered User
 
Join Date: Nov 2005
Location: Spokane, Washington
Posts: 12
Send a message via AIM to TometaSoftware Send a message via Yahoo to TometaSoftware
I typically create a config file that hoses the main information - for example

config.cfg containing
username
password
prompt
binary
cd data
mput *.jpg
mput *.gif
mput *.png
bye

Then create a send.bat containing:
ftp -s:config.cfg ftp.server.com

If you really want to get fancy you can then create a third batch file called start.bat with the command:
send.bat > log.txt

That will log the whole transfer to a txt file so you can check for errors.

this instance was used to move images.
__________________
Brandon L. Marchand
Tometa Software, Inc.
[url]http://www.tometasoftware.com[/url]
Reply With Quote

  #4  
Old 11-09-2005, 05:57 PM
teknogeek1300's Avatar
teknogeek1300 Offline
Registered User
 
Join Date: Nov 2005
Posts: 4
Figure it out last night really late.

FTPInstall:

Code:
@ftp -s:ftpinstall.txt sucess.exe

FTPInstall.txt:

Code:
open 192.168.2.4 xbox xbox cd F/Games/GTA_San_Andreas/data lcd editing send handling.cfg handling.cfg quit

Took me 6 hours! Thanks for your replys!
__________________
[URL=http://img42.imageshack.us/img42/4289/circuitchipsig1gif8lb.gif]My Sig[/URL]
Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
nero startsmart problem stoo999 Hardware Problems 7 08-09-2006 12:20 PM
Batch file to move a file WorldBuilder Software Problems and Useful Utilities 1 11-03-2005 06:22 AM
A little help needed cdb252 Windows XP 0 06-23-2005 02:15 PM
rewriter not working! skoundrel Windows XP 6 05-29-2005 02:31 PM
Deleting a file using a batch file in Windows scheduler JP-D Windows NT/2000/2003 2 05-01-2005 03:07 PM



All times are GMT -5. The time now is 03:20 AM.


Designed by eXtremepixels. Powered by vBulletin Version 3.5.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 2.3.2 © 2005, Crawlability, Inc.