PDA

View Full Version : How to pass username & password through batch file


YogeshS
Apr 2, 2009, 07:06 AM
Hello experts
I am conneting to my ftp server through batch file.
But every time it is asking me for username & password

So how do I pass the authentification (username & Password) parameters through the batch file itself.

(I need to automate my batch file , passing the username and password in the batch file itself)so that, user doesn't have to put in the authentication every time.

Guide

Helljack6
Apr 2, 2009, 07:12 PM
Try something like this?

NET USE [devicename | *] [\\computername\sharename[\volume] [password | *]]
[/USER:[domainname\]username]
[/USER:[dotted domain name\]username]
[/USER:[username@dotted domain name]
[[/DELETE] | [/PERSISTENT:{YES | NO}]]

NET USE {devicename | *} [password | *] /HOME

NET USE [/PERSISTENT:{YES | NO}]