Need help with a .bat file

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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
 
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
 
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
 
Back
Top