Need help with a .bat file

G

Guest

I am writing a .bat file. It has been a while. The file kicks off an ftp
program. I then need to put in a user name and password. However, it does
not write the username of password into the prompts. Here is how I wrote it.
What am i missing?

ftp mvssys
xxxxsssww (username example)
zadsfdsaf (password example)

Not sure why this doesn't work
 
S

sali

Mac said:
I am writing a .bat file. It has been a while. The file kicks off an ftp
program. I then need to put in a user name and password. However, it
does
not write the username of password into the prompts. Here is how I wrote
it.
What am i missing?

ftp mvssys
xxxxsssww (username example)
zadsfdsaf (password example)

i usualy do [with -s: option of ftp command]:

ftp -s:myftp.ftp <ftp_host>

myftp.ftp is a simple text file with ftp commands, starting [from the first
line]:
----
username
password
ftpcommand_1
ftpcommand_2
....
ftpcommand_n
quit
 
G

Guest

Thanks. Still not entirely sure of how to do it. I created a file called
myftp.ftp. It keeps it as a text file though and I am not sure how to run it

sali said:
Mac said:
I am writing a .bat file. It has been a while. The file kicks off an ftp
program. I then need to put in a user name and password. However, it
does
not write the username of password into the prompts. Here is how I wrote
it.
What am i missing?

ftp mvssys
xxxxsssww (username example)
zadsfdsaf (password example)

i usualy do [with -s: option of ftp command]:

ftp -s:myftp.ftp <ftp_host>

myftp.ftp is a simple text file with ftp commands, starting [from the first
line]:
----
username
password
ftpcommand_1
ftpcommand_2
....
ftpcommand_n
quit
 
E

Ed Siff

Create a batch file, name it whatever.bat. it should look like this:

//////////////////////////
:: whatever.bat
:: ftp to wherever

ftp -s:myftp.ftp <ftp_host>

exit
/////////////////////////

the batch file will start ftp which will read its commands from myftp.ftp.

just make sure to be sure myftp.ftp is in the same folder as whatever.bat, or
you'll have to refer to its full path.

Ed



Thanks. Still not entirely sure of how to do it. I created a file called
myftp.ftp. It keeps it as a text file though and I am not sure how to run it

sali said:
Mac said:
I am writing a .bat file. It has been a while. The file kicks off an ftp
program. I then need to put in a user name and password. However, it
does
not write the username of password into the prompts. Here is how I wrote
it.
What am i missing?

ftp mvssys
xxxxsssww (username example)
zadsfdsaf (password example)

i usualy do [with -s: option of ftp command]:

ftp -s:myftp.ftp <ftp_host>

myftp.ftp is a simple text file with ftp commands, starting [from the first
line]:
----
username
password
ftpcommand_1
ftpcommand_2
....
ftpcommand_n
quit
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top