Computing.Net > Forums > Programming > batch file not working

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

batch file not working

Reply to Message Icon

Name: kingkhan
Date: January 31, 2008 at 04:19:46 Pacific
OS: xp
CPU/Ram: 512 mb
Product: p4
Comment:


i am trying to automate ftp process. but neither am able to upload nor download,here is the script
@echo off
cd E:\docs\
>ftpcmd.dat echo ftp 192.18.16.40
>>ftpcmd.dat echo User (192.18.16.40:(none)):root
>>ftpcmd.dat echo Password:kiss1234
>>ftpcmd.dat echo prompt off
>>ftpcmd.dat echo get *.txt
>>ftpcmd.dat echo bye
ftp -s :ftpcmd.dat
after execution of the .bat file am getting ftpcmd.dat file with contents as follows
ftp 192.18.16.40
User (192.18.16.40:(none)):root
Password:kiss1234
prompt off
get *.txt
bye

wher on / of 192.18.16.40 i have several txt files but am not getting any of those4.plz help to sort out.
Thanks in advance for help




Sponsored Link
Ads by Google

Response Number 1
Name: Mechanix2Go
Date: January 31, 2008 at 05:28:40 Pacific
Reply:

try this:

::==

> #.ftp echo o yoursite.com
>> #.ftp echo username
>> #.ftp echo password
>> #.ftp echo bin
>> #.ftp echo prompt
>> #.ftp echo mget *.txt
>> #.ftp echo bye



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

M2



0

Response Number 2
Name: kingkhan
Date: January 31, 2008 at 21:42:08 Pacific
Reply:

thanks a lot mechanix2go... it worked :)


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







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: batch file not working

Batch file not run scheduled task www.computing.net/answers/programming/batch-file-not-run-scheduled-task/16757.html

batch file not finding exe files www.computing.net/answers/programming/batch-file-not-finding-exe-files/17578.html

[BATCH] 'Ping' Command Not Working. www.computing.net/answers/programming/batch-ping-command-not-working/18615.html