Computing.Net > Forums > Disk Operating System > Help with a 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 start participating now! Also, be sure to check out the New User Guide.

Help with a batch file

Reply to Message Icon

Name: Matt
Date: November 6, 2000 at 11:18:19 Pacific
Comment:

Can someone please help me with writing a batch file? I really don't know much about them. Here is what it needs to do if possible.

In a dos promt I change to a network drive "F" then cd and then from that directory I ftp and use a username and then a password and once I am in the remote server I need to "cd" and then transfer a file and then "bye" Is there a way to make this into a batch file?
Thanks in advance!!
Matt



Sponsored Link
Ads by Google

Response Number 1
Name: neXussT
Date: November 6, 2000 at 12:03:17 Pacific
Reply:

i don't think so...i don't think batch files can interact with a program in dos...but in windows..u can download a program called FakeSurf...u can record your mouse so u just go about opening a windows ftp prg like cuteftp, click on the ip u want ot connect to and stuph like that and Fake Surf will record it and u can replay it at a later time
good luck :)
neXussT


0

Response Number 2
Name: dave
Date: November 6, 2000 at 13:44:00 Pacific
Reply:

@echo off
NET USE F: \\RemoteComputer\directory /NO >c:\windows\TEMP\CreatedOuputFile.TXT
ftp YourFtpSErver
username
password
lcd ..
get RemoteFileFullPath LocalFileFullPath
bye


place all text in notepad.. then change the file extension from .txt to .bat
thats all
(of course change the information to suit u)


0

Response Number 3
Name: Matt
Date: November 7, 2000 at 09:05:27 Pacific
Reply:

Thanks alot Dave! I will give it a try.


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 Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: Help with a batch file

Close Win Program with a Batch File www.computing.net/answers/dos/close-win-program-with-a-batch-file/13949.html

Need help with a .bat file www.computing.net/answers/dos/need-help-with-a-bat-file/2931.html

set dir size with a batch file? www.computing.net/answers/dos/set-dir-size-with-a-batch-file/12277.html