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 get for your free account now!

FTP Batch File

Reply to Message Icon

Name: charlesmason
Date: August 21, 2008 at 16:23:32 Pacific
OS: WinXP
CPU/Ram: 3.2
Manufacturer/Model: Dell
Comment:

I am trying to write a batch file that will download a series of files from a secure server using an FTP client. These files are hidden from an ordinary FTP client, so I have to download them using a batch program. Has anyone written a program like this that could give me some pointers?

I am totally stuck on getting it to work.

Thanks in advance.

Charles Mason

Charles Mason


Report Offensive Message For Removal

Sponsored Link
Ads by Google

Response Number 1
Name: Mechanix2Go
Date: August 21, 2008 at 21:15:54 Pacific
Reply:

@echo off
setLocal EnableDelayedExpansion

> #.ftp echo o mysite.com
>> #.ftp echo username
>> #.ftp echo password
>> #.ftp echo bin
>> #.ftp echo cd /files
>> #.ftp echo prompt
>> #.ftp echo mget *.txt
>> #.ftp echo bye

ftp -s:#.ftp


=====================================
If at first you don't succeed, you're about average.

M2


Report Offensive Follow Up For Removal

Response Number 2
Name: charlesmason
Date: August 22, 2008 at 07:01:26 Pacific
Reply:

Thank you very much for your help. I am relatively new at doing scripts and apparently still am having difficulties. I am using a software package called ScriptFTP. I think my problem may be in the .bat file itself. I inserted the instructions above into the actual .bat file, but apparently I didn't do it correctly. Can you give me a bit more direct instructions?

Thanks, I am eternally grateful.

Charles Mason

Charles Mason


Report Offensive Follow Up For Removal

Response Number 3
Name: Mechanix2Go
Date: August 22, 2008 at 07:25:55 Pacific
Reply:

If you copy the lines I osted and paste them into a batch, let's call it MY.BAT, that should do the trick. You will, of course, need to edit and put in 'real' values for the domain, user, etc.



=====================================
If at first you don't succeed, you're about average.

M2


Report Offensive Follow Up For Removal

Response Number 4
Name: charlesmason
Date: August 25, 2008 at 17:24:12 Pacific
Reply:

I must be not as smart as I thought I was. I just can't get this to work. Do you know anyone that we can pay to get this working? We are getting desparate.

Thanks,

Charles Mason


Report Offensive Follow Up For Removal

Response Number 5
Name: Mechanix2Go
Date: August 25, 2008 at 17:34:04 Pacific
Reply:

You can paste in the script you are using. But DON'T show your real password.

What errors are you getting?


=====================================
If at first you don't succeed, you're about average.

M2


Report Offensive Follow Up For Removal

Related Posts

See More



Response Number 6
Name: Mechanix2Go
Date: August 28, 2008 at 03:12:46 Pacific
Reply:

Any luck, Chuck?


=====================================
If at first you don't succeed, you're about average.

M2


Report Offensive Follow Up For Removal
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/9027.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