|
-
May 29th, 2001, 01:34 PM
#1
Registered User
ftp batch file
I'm wondering if it is possible to create a simple batch file on NT that would ftp to a server, logon, put a file, and logoff. I would then want to have it run automatically every evening. Any ideas would be appreciated.
(mods, if this is not the right forum, please move it and let me know.....thanks)
peace
-
May 29th, 2001, 02:14 PM
#2
hmmm not sure if it will work but you could try
ftp <<ftp.dat
where ftp.dat looks like
open <site name or ip address>
user <login name>
pass <password>
cwd etc
cwd <where you want the file to go>
bin <~ you should know what this does
put Filename.ext
then just use the at command to fun ftp <<ftp.dat at the specified time
-
May 29th, 2001, 06:28 PM
#3
Registered User
drewber,
thanks, but it didn't work. the problem is, that once it connects to the server, the batch file no longer has control, and i have to manually put in my logon info. i'm starting to seriously doubt this is even possible. probably a good thing, security wise, but it would be nice to be able to do it. thanks again for the post.
any more ideas?
peace
-
May 29th, 2001, 06:48 PM
#4
Registered User
-
May 29th, 2001, 06:51 PM
#5
Registered User
Thanks for posting the solution. That way it helps everyone.
-
May 29th, 2001, 06:59 PM
#6
Registered User
No prob, Shadow
that's why we're all here. i learn a lot just from reading all the posts, and it's a little annoying when someone finds the solution and doesn't bother to tell the rest of the class. ya know?
anywho, i hope it helped somebody
take care
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|
Bookmarks