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.
FTP commands in a DOS batch
Name: Carlitos Date: May 7, 2004 at 02:08:33 Pacific OS: NT4 CPU/Ram: P3 128mb
Comment:
Hi,
At the moment I'm manually typing the following FTP commands into the DOS prompt:
ftp open hostname username password cd /whicheverdirectory binary put a:\filename or get filename
I want to write a batch that does as much as this automatically. Please help. Thanks, Carlos
You do not need to have a batch to do this, exploit instead the -s switch of the command as explained below.
Using a text editor, e.g. NotePad or Edit, set up a file containing your Ftp commands, so
FtpCom.txt ------------ open hostname username password cd /whicheverdirectory binary put a:\filename
Then just type at the prompt Ftp -s:FtpCom.txt where FtpCom.txt is the name (and pathname) of the file you edited. Do not have blanks in the pathname-file name.
Summary: Hi I need to split a numeric value ex "111111110" by each digit from the right hand side. Could someone please tell me how to get this done in a DOS batch file ex : chr1 = 0 chr2 = 1 chr3 = 1 chr4 = ...
Summary: ok, i figured out this isnt possible so let me clarify what im trying to do by giving an example. you know how to put FTP commands in a txt file and then have it called within a BAT file, right? ok, w...
Summary: Hi, If I have set of commands in a file, how do I send that file over expect to the spawned process so that once I send the file then those commands in the file are executed in the spawned process. sp...