Computing.Net > Forums > Windows NT > Net Use Command

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Net Use Command

Reply to Message Icon

Name: Ahamed Kaize
Date: December 4, 2001 at 08:42:26 Pacific
Comment:

I am have a machine with a network card installed with Windows NTWS 4.0 machine is named as SERVER [not connected to any other computers]

Can I map the local folders like in Novell/DOS using the NET USE command and how?

For example I have 2 folder like DATA and PROS I have to be mapped these folders while booting
G:\ = DATA folder
K:\ = PROG Folder

Thanks



Sponsored Link
Ads by Google

Response Number 1
Name: David
Date: December 4, 2001 at 08:56:25 Pacific
Reply:

Make a Batch file.
Name it netdriv.bat
paste in there the following 3 lines:
@echo off
net use g: \\server\data
net use K: \\server\prog

Save it in the start menu in the folder called startup.

enjoy.
David


0

Response Number 2
Name: Ahamed Kaize
Date: December 5, 2001 at 00:34:15 Pacific
Reply:

Thanks for the info.
We are using a $ next the the folder sharing nane like DATA$ PROG$ in order to hide these folders with a normal operations.

Without these $ your bat file works fine, but with $ No way.

Can you please get me a solution?



0

Response Number 3
Name: Nick
Date: December 8, 2001 at 05:03:48 Pacific
Reply:

You could also try this

subst g: c:\data

but i'm not sure if it is supported in NTWS 4.0. - Works in XP 98 and 2000 though.

for more info type subst /? at command prompt.


0

Response Number 4
Name: pranav
Date: January 23, 2002 at 06:27:30 Pacific
Reply:

i have the net use on start up but how do i edit the batch file so that I don't have to enter password evertime.



0

Response Number 5
Name: Robert Bell
Date: March 5, 2002 at 01:39:40 Pacific
Reply:

Try using the following syntax to add passwords.

net use x: \\server\folder password /USER:user

You can also use the following switch with Win2000 to stop windows trying to reconnect the drives at stratup, before your batch runs..

/PERSISTENT:NO

To further tidy up the output, add the following to the end of each net use command..

> nul

Then add the follwoing line to give a summary of all drives mapped by the batch..

net use


Hope this helps.


0

Related Posts

See More



Response Number 6
Name: Dan
Date: March 31, 2002 at 05:11:27 Pacific
Reply:

Question:
in process of migrating from Novell to 2000 OS. Created Login scripts for all users. Pretty much all is fine. However, when it comes to user home folders running into problem. I do not store home directories on a traditional filse server, but a SNAP server.
In the Novell Login:
MAP H: \\Snapserver\CN
(The CN refered to login names for the context of this issue)
For Windows 2000 DOM login (using ADS):
Net Use H:\\snapserver\%username%

I also have specific mappings to other shares on SNAP, ie. A Prodoffice share.

Now when run, all the specific, static named shares map without problem.

The %username% variable acts differently. It seems to work correctly when run on a win2000 Pro WS. However when run on a 95/98 machine, I get the following (sorry going by memory)

net use H:\\snapserver\
there is a problem with the syntex

I verified that rights were correct. I also reviewed the login script (and compared the same login script on a 2000 vs 98 machine...and while this was a brief comparision, I feel there is a relation to the WS OS)
Also, when I did a net use /? on both WS OS, there were differences... But after a 12 hour day and running late for a dinner I had to pull the plug.
Any thoughts, suggestions? I intend on updating all WS to 2000 but I will be pulling the plug on the Novell sooner than that, and was hoping to come up with a better way than individual login scripts. Thanks a lot!! Dan



0

Response Number 7
Name: Mark
Date: April 3, 2002 at 13:37:02 Pacific
Reply:

I am using the net use command to capture printer ports so dos based programs can run in W2K. I have gone an extra step to map the printer using the users computer as the server. The problem with this is that when you lok at the available printers list, it lists everyone.
Is there a way to map a printer and have it hidden from everyone else?


0

Sponsored Link
Ads by Google
Reply to Message Icon

win2K - Browser List? Remote Admin



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows NT Forum Home


Sponsored links

Ads by Google


Results for: Net Use Command

NET USE command password issue www.computing.net/answers/windows-nt/net-use-command-password-issue/22586.html

Net Use command with No Banner www.computing.net/answers/windows-nt/net-use-command-with-no-banner/12290.html

Disconnecting Network Printer from net use command. www.computing.net/answers/windows-nt/disconnecting-network-printer-from-net-use-command/1145.html