Map drive with batch file....

  • Thread starter Thread starter Calvin
  • Start date Start date
C

Calvin

I have a login batch file that runs when the user logs in. It maps a few
network drives and a network printer. The DOS window doesn't come up but the
window that says Mapping Network Drive that has a cancel button does come up.

Is there a way to stop that window from showing? I think that sometimes
users may accidently hit the cancel button so they don't have these resources
available.
 
Hi
If you would show what is in the BAT file that does the mapping it might
help.
Jack (MS, MVP-Networking)
 
No problem. My batch file is very simple...

(I did change the server/folder names and IPs of course)

NET USE W: \\192.168.1.50\Share1 /persistent:NO
NET USE V: \\192.168.1.50\Share2 /persistent:NO

rundll32 printui.dll,PrintUIEntry /in /n\\Server\PrinterName /u
rundll32 printui.dll,PrintUIEntry /in /n\\Server\PrinterName
 
We don't want to use persistent YES in this environment. Besides when I do
run persistent YES it still shows that "Mapping Network Drive" window with
the Cancel button. I am trying to get rid of that coming up on the user's
screen altogether.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top