Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 10-17-2007, 09:11 AM   #1 (permalink)
 
Junior Techie

Join Date: Jul 2006

Posts: 83

steak1986

Default Net Use

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
steak1986 is offline  
Old 10-18-2007, 08:30 AM   #2 (permalink)
Osiris's Avatar
 

Join Date: Jan 2005

Location: Kentucky

Posts: 32,067

Osiris is a jewel in the roughOsiris is a jewel in the roughOsiris is a jewel in the rough

Send a message via ICQ to Osiris Send a message via AIM to Osiris Send a message via MSN to Osiris Send a message via Yahoo to Osiris Send a message via Skype™ to Osiris
Default Re: Net Use

Does this place have AD?
__________________
Osiris is online now  
Old 10-19-2007, 04:54 PM   #3 (permalink)
 
Monster Techie

Join Date: May 2004

Location: /usr/root/mn/us

Posts: 1,121

bla!! is on a distinguished road

Default Re: Net Use

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.
__________________
<br>
Its a frigging Laptop, not a Labtop!!!!
bla!! is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
NET Framework Problems AhBeng Hardware Troubleshooting 5 09-24-2007 09:17 PM