Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Windows (https://www.askmehelpdesk.com/forumdisplay.php?f=237)
-   -   How to pass username & password through batch file (https://www.askmehelpdesk.com/showthread.php?t=336957)

  • Apr 2, 2009, 07:06 AM
    YogeshS
    How to pass username & password through batch file
    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
  • Apr 2, 2009, 07:12 PM
    Helljack6

    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}]

  • All times are GMT -7. The time now is 06:56 AM.