How do I mention username and password in windows batch file?

jchellap

Member
Hi all,

I would like to put a mfgpro generated report into a remote server and I am trying to write a batch file for that.

I am new to write batch script (*.bat).

Here is the batch script i used and

ftp "servername" /U "username" /p "password"

but it is not working . Can anyone suggest me how to mention "username" and "password" to login remote server in batch file please.

Thanks in advance !!!
 

rmdasari

Member
Hi :

Create a text file with the following , and pass it as input parameter.

open <ftp site>
user <username> <password>
cmd..
...
...
close
quit
<save the above as xxxxx.ftp>

ftp -inv < xxxx.ftp


Thanks & Regards,

Ramamurthy Dasari





Hi all,

I would like to put a mfgpro generated report into a remote server and I am trying to write a batch file for that.

I am new to write batch script (*.bat).

Here is the batch script i used and

ftp "servername" /U "username" /p "password"

but it is not working . Can anyone suggest me how to mention "username" and "password" to login remote server in batch file please.

Thanks in advance !!!
 
Top