Home All Groups Group Topic Archive Search About

Map drive with batch file....

Author
16 Mar 2009 4:24 PM
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.

Author
16 Mar 2009 5:41 PM
Jack-MVP
Hi
If you would show what is in the BAT file that does the mapping it might
help.
Jack (MS, MVP-Networking)

Show quoteHide quote
"Calvin" <Cal***@discussions.microsoft.com> wrote in message
news:84FD53F5-69BB-48A2-BD45-90BC5B371E11@microsoft.com...
>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.
Author
16 Mar 2009 6:11 PM
Calvin
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



Show quoteHide quote
"Jack-MVP" wrote:

> Hi
> If you would show what is in the BAT file that does the mapping it might
> help.
> Jack (MS, MVP-Networking)
>
> "Calvin" <Cal***@discussions.microsoft.com> wrote in message
> news:84FD53F5-69BB-48A2-BD45-90BC5B371E11@microsoft.com...
> >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.
>
>
Author
16 Mar 2009 6:24 PM
Jack-MVP
Hi
Try to change the persistent to YES
Jack (MS, MVP-Networking)

Show quoteHide quote
"Calvin" <Cal***@discussions.microsoft.com> wrote in message
news:02EAAC21-E759-4D8D-A7BB-4B901080AB3D@microsoft.com...
> 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
>
>
>
> "Jack-MVP" wrote:
>
>> Hi
>> If you would show what is in the BAT file that does the mapping it might
>> help.
>> Jack (MS, MVP-Networking)
>>
>> "Calvin" <Cal***@discussions.microsoft.com> wrote in message
>> news:84FD53F5-69BB-48A2-BD45-90BC5B371E11@microsoft.com...
>> >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.
>>
>>
Author
16 Mar 2009 7:00 PM
Calvin
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.


Show quoteHide quote
"Jack-MVP" wrote:

> Hi
> Try to change the persistent to YES
> Jack (MS, MVP-Networking)
>
> "Calvin" <Cal***@discussions.microsoft.com> wrote in message
> news:02EAAC21-E759-4D8D-A7BB-4B901080AB3D@microsoft.com...
> > 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
> >
> >
> >
> > "Jack-MVP" wrote:
> >
> >> Hi
> >> If you would show what is in the BAT file that does the mapping it might
> >> help.
> >> Jack (MS, MVP-Networking)
> >>
> >> "Calvin" <Cal***@discussions.microsoft.com> wrote in message
> >> news:84FD53F5-69BB-48A2-BD45-90BC5B371E11@microsoft.com...
> >> >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.
> >>
> >>
>
>