Net Use

Status
Not open for further replies.

steak1986

Baseband Member
Messages
83
I am trying to create a batch file that will Create a daive mapping when the computer starts up. First I will tell you I have tried the gui's way of mapping a network drive, I tell it to remember the credentials, but it always forgets the password. I have also tried the net use /savecred(entials). My batch file is posted below, I can get it to all work except when i try to push along the password. the problem I am having is that the directions on the internet dont have an example of the password switch being used. From what I have read the switch is [password| *] everytime i enter it tells me that my password, or whatever is in that spot either my password or *, is not a recognizable internal command.


@echo off
net use /delete w: >nul
net use w: \\(server)\lantalk password:***** \user:*****
exit
 
Use this

Code:
net use w: \\(server)\lantalk password /user:*****

Replace password with the actual password.
There is no switch for the password variable, it's just expected to be after the UNC path.
 
Status
Not open for further replies.
Back
Top Bottom