Win98 Drive mapping Batch file

TMPadmin

Golden Member
Jul 23, 2001
1,886
0
0
Simple question but I've been working with NT so long I forgot the syntax for a win9x system. How do I map a drive (net use) when I'm on a win9x box to a server shared folder?

I use this command for NT with success
net use m: \\servername\share Password /USER:Domain\loginname
OR
net use x: \\servername\share /persistent:no
Both work.

I have a VPN lock where I can ping the server's ip so I an connected.

Thanks for the help!
TMP
 

mgpaulus

Golden Member
Dec 19, 2000
1,112
0
0
Probably the easiest way is to use the My Computer icon->Tools->Map Network Drive. Fill in the Server & Share, and make sure to check the "reconnect drive at startup" option.

Otherwise, the Net Use syntax should be the same, except for some optional params. I do not believe the /persistent:yes is supported on Win9x/ME. So, you either need to add the net use command to some startup command (You could create a batch file with all your net use commands, and then execute it from the "startup" folder). The Map Network Drive option allows you to set the persistent flag.
 

Woodchuck2000

Golden Member
Jan 20, 2002
1,632
1
0
You cannot specify a username with the win9x "net use" command.

it really is just "net use n: \\server\share"
with a prompt for a password if necessary.
 

Smilin

Diamond Member
Mar 4, 2002
7,357
0
0

Also remember that net use * \\servername\%username% doesn't work in 9x...the %username% never gets passed...you have to use kix95 to get it to work.

If you're not dealing with home drives the above won't apply...ignore me in this case and just listen to the other guys :)

 

TMPadmin

Golden Member
Jul 23, 2001
1,886
0
0
It doesn't seem to work!!!! I need to have this as easy as possible (batch file) because my users want to be able to vpn in from home with their win98 machines and map drives. I can do this with those who have 2K or NT 4.0 since it handles logins "properly".

I can not think of an EASY way to make this happen. I could hook them up to Terminal Services but then I need more CAL's at $80 a pop. I'll see if President likes that idea. Or give each of them 2K notebooks at 2K a pop.

Time to continue drowning my sorrows. Thanks all!

TMP

"Is there anything a man don't stand to loose, when the Devil wants to take it all away?"
 

mobly99

Senior member
Apr 27, 2001
260
0
0
Are the users cancelling out of the win 98 network logon when the computer comes up? If they cancel out of the then windows networking doesn't start and they will not be able to connect..... worth checking out - I used to have a lot of users that didn't understand this and they would just hit cancel at the domain logon so they would not have to wait and end up getting the error message that a domain controller could not be contacted.

-Dave