Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Community Discussions (All other subjects)
 usernames and passwords in batch files
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

sr_erick
Senior Member

USA
1318 Posts

Posted - 21 October 2003 :  01:46:08  Show Profile  Visit sr_erick's Homepage  Send sr_erick a Yahoo! Message
How is this done? I have a simple batch file I want to use and set up as a scheduled task to log into an ftp site every night and download the database to the local computer. Is there a special way to input userames, etc.. because every time I run the file I am prompted for a username even though it is in the batch file.

Thanks!




Erick
Snowmobile Fanatics

dayve
Forum Moderator

USA
5820 Posts

Posted - 21 October 2003 :  11:15:27  Show Profile  Visit dayve's Homepage
I've done this countless times because I am a die hard DOS user, even to today!!!

I do this in a 2 step process. The process includes creating a batch file and a normal text file. Create a text file that looks somewhat similar to this:

ftp.txt
=======

open server address (host)
username
password
put your execute statements here like put or get
disconnect
quit

Then create a batch program similar to this:

ftp.bat
=======

ftp -s:ftp.txt

Voila!, that is it. Let me know if you need more help.


Edited by - dayve on 21 October 2003 11:15:51
Go to Top of Page

sr_erick
Senior Member

USA
1318 Posts

Posted - 21 October 2003 :  14:03:25  Show Profile  Visit sr_erick's Homepage  Send sr_erick a Yahoo! Message
Works excellent! Thanks much dayve!




Erick
Snowmobile Fanatics

Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 21 October 2003 :  14:12:56  Show Profile  Visit dayve's Homepage
quote:
Originally posted by sr_erick

Works excellent! Thanks much dayve!



you're welcome. its nice to see people doing things the "old school" way

Go to Top of Page

sr_erick
Senior Member

USA
1318 Posts

Posted - 21 October 2003 :  18:43:34  Show Profile  Visit sr_erick's Homepage  Send sr_erick a Yahoo! Message
I am in the middle of a DOS class. I use it all the time too, just I haven't made many batch files yet. I think it is a great and simple thing that everyone should learn. There are so many things you can save time doing with command line, batch files, etc...easier than finding some program, installing it, and then making it work if you ask me.




Erick
Snowmobile Fanatics

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.33 seconds. Powered By: Snitz Forums 2000 Version 3.4.07