From the command line:
ftp>
I want to run: "Open csldv2"
ftp> Open csldv2
Is there a function that allows me add the text "Open csldv2" and run this command????
Posted 25 June 2001 - 16:53
From the command line:
ftp>
I want to run: "Open csldv2"
ftp> Open csldv2
Is there a function that allows me add the text "Open csldv2" and run this command????
Posted 25 June 2001 - 21:33
ftp.exe < commands.txt
where copmmands.txt would include a line like this:
Open csldv2
I think this technique is called input redirection - you'll find more in some DOS book, web site or help file I guess.
Posted 28 June 2001 - 13:47
FTP [-v] [-d] [-i] [-n] [-g] [-s:filename] [-a] [-w:windowsize] [host]
-v Suppresses display of remote server responses.
-n Suppresses auto-login upon initial connection.
-i Turns off interactive prompting during multiple file
transfers.
-d Enables debugging.
-g Disables filename globbing (see GLOB command).
-s:filename Specifies a text file containing FTP commands; the
commands will automatically run after FTP starts.
-a Use any local interface when binding data connection.
-w:buffersize Overrides the default transfer buffer size of 4096.
host Specifies the host name or IP address of the remote
host to connect to.
So what you can do, is to create a text file with the following contents (let's name the file as ftp.txt):
open csldv2
username
password
operation1
...
operationN
quit
Then command ftp -s:ftp.txt