Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Batch file to ftp to UNIX

Status
Not open for further replies.

AMSTech

Technical User
Oct 1, 2001
13
0
0
US
Can anyone explain how I can run a batch file to get a file from a unix box using ftp.
 
You would need something like this:

ftp
open unix.box.com
username
password
cd /folderyouneed
lcd c:\localdirectory
bin
hash
get filename.ext
quit

 
Thanks, That was exactly what I was looking for, worked perfectly.
 
The Batch file works when done manually from a command promt. I tried adding it to the scheduler but it never runs. Is there something that needs to be done in XP to make a dos batch job run in the sheduler?
 
There shouldnt be anything else you need todo, it should run with scheduler without any problems, does it say its failing to run at all in schulded tasks?

 
Nothing, no messages or error listings that I can find.
 
Does the account you used have enough access to write to the local of the file and enough access to beable to run?

 
That did it, I did not have the password right. Thanks for all the help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top