Home All Groups Group Topic Archive Search About

Connect network drive in DOS

Author
8 Oct 2006 3:15 PM
Zoltan K.
I'm running XP pro and I've forgotten the DOS command to map a local network
drive for use by batch file. Can sombody remind me what it is.

Thanks
Zoltan

Author
8 Oct 2006 5:08 PM
Steve Winograd [MVP]
In article <18B355C7-1B88-4448-9003-77A43861B***@microsoft.com>,
Zoltan K. <Zolt***@discussions.microsoft.com> wrote:
>I'm running XP pro and I've forgotten the DOS command to map a local network
>drive for use by batch file. Can sombody remind me what it is.
>
>Thanks
>Zoltan

For details, open a command prompt window and type:

   net use /?

An example is:

   net use d: \\computer\share
--
Best Wishes,
Steve Winograd, MS-MVP (Windows Networking)

Please post any reply as a follow-up message in the news group
for everyone to see.  I'm sorry, but I don't answer questions
addressed directly to me in E-mail or news groups.

Microsoft Most Valuable Professional Program
http://mvp.support.microsoft.com
Author
8 Oct 2006 6:25 PM
Zoltan K.
Steve:
Your original answer answered my question but when I use the command it
doesn't work. I'm pasting a copy of my command screen below:
=====================================================
E:\Documents and Settings\dgit>net use
New connections will be remembered.

Status       Local     Remote                    Network
--------------------------------------------------------------------------
Unavailable  B:        \\SANSASKA-M\Buster (C)   Microsoft Windows Network
OK           P:        \\SANSASKA-LAPTOP\C laptop    Microsoft Windows Network
The command completed successfully.

E:\Documents and Settings\dgit>net use q: \\SANSASKA-LAPTOP\C laptop
System error 53 has occurred.

The network path was not found.
==================================================

As you can see the command "net use q: \\SANSASKA-LAPTOP\C laptop" failed
because the network path was not found yet it shows above for P:. Any ideas?

Thanks
Zoltan
Show quoteHide quote
"Steve Winograd [MVP]" wrote:

> In article <18B355C7-1B88-4448-9003-77A43861B***@microsoft.com>,
> Zoltan K. <Zolt***@discussions.microsoft.com> wrote:
> >I'm running XP pro and I've forgotten the DOS command to map a local network
> >drive for use by batch file. Can sombody remind me what it is.
> >
> >Thanks
> >Zoltan
>
> For details, open a command prompt window and type:
>
>    net use /?
>
> An example is:
>
>    net use d: \\computer\share
> --
> Best Wishes,
> Steve Winograd, MS-MVP (Windows Networking)
>
> Please post any reply as a follow-up message in the news group
> for everyone to see.  I'm sorry, but I don't answer questions
> addressed directly to me in E-mail or news groups.
>
> Microsoft Most Valuable Professional Program
> http://mvp.support.microsoft.com
>
Author
8 Oct 2006 6:41 PM
Steve Winograd [MVP]
In article <FEB6B7DD-4339-4300-90E9-9C41AA586***@microsoft.com>,
Zoltan K. <Zolt***@discussions.microsoft.com> wrote:
Show quoteHide quote
>> >I'm running XP pro and I've forgotten the DOS command to map a local network
>> >drive for use by batch file. Can sombody remind me what it is.
>>
>> For details, open a command prompt window and type:
>>
>>    net use /?
>>
>> An example is:
>>
>>    net use d: \\computer\share
>
>Steve:
>Your original answer answered my question but when I use the command it
>doesn't work. I'm pasting a copy of my command screen below:
>=====================================================
>E:\Documents and Settings\dgit>net use
>New connections will be remembered.
>
>Status       Local     Remote                    Network
>--------------------------------------------------------------------------
>Unavailable  B:        \\SANSASKA-M\Buster (C)   Microsoft Windows Network
>OK           P:        \\SANSASKA-LAPTOP\C laptop    Microsoft Windows Network
>The command completed successfully.
>
>E:\Documents and Settings\dgit>net use q: \\SANSASKA-LAPTOP\C laptop
>System error 53 has occurred.
>
>The network path was not found.
>==================================================
>
>As you can see the command "net use q: \\SANSASKA-LAPTOP\C laptop" failed
>because the network path was not found yet it shows above for P:. Any ideas?
>
>Thanks
>Zoltan

You're welcome, Zoltan.  Is the share name "C laptop"?  If so, it has
to be enclosed in quotes since it contains a blank character:

   net use q: "\\SANSASKA-LAPTOP\C laptop"

It's best to use only letters and numbers in a shared name.
--
Best Wishes,
Steve Winograd, MS-MVP (Windows Networking)

Please post any reply as a follow-up message in the news group
for everyone to see.  I'm sorry, but I don't answer questions
addressed directly to me in E-mail or news groups.

Microsoft Most Valuable Professional Program
http://mvp.support.microsoft.com
Author
9 Oct 2006 4:19 PM
Zoltan K.
Steve:

That was it, thanks.

Zoltan

Show quoteHide quote
"Steve Winograd [MVP]" wrote:

> In article <FEB6B7DD-4339-4300-90E9-9C41AA586***@microsoft.com>,
> Zoltan K. <Zolt***@discussions.microsoft.com> wrote:
> >> >I'm running XP pro and I've forgotten the DOS command to map a local network
> >> >drive for use by batch file. Can sombody remind me what it is.
> >>
> >> For details, open a command prompt window and type:
> >>
> >>    net use /?
> >>
> >> An example is:
> >>
> >>    net use d: \\computer\share
> >
> >Steve:
> >Your original answer answered my question but when I use the command it
> >doesn't work. I'm pasting a copy of my command screen below:
> >=====================================================
> >E:\Documents and Settings\dgit>net use
> >New connections will be remembered.
> >
> >Status       Local     Remote                    Network
> >--------------------------------------------------------------------------
> >Unavailable  B:        \\SANSASKA-M\Buster (C)   Microsoft Windows Network
> >OK           P:        \\SANSASKA-LAPTOP\C laptop    Microsoft Windows Network
> >The command completed successfully.
> >
> >E:\Documents and Settings\dgit>net use q: \\SANSASKA-LAPTOP\C laptop
> >System error 53 has occurred.
> >
> >The network path was not found.
> >==================================================
> >
> >As you can see the command "net use q: \\SANSASKA-LAPTOP\C laptop" failed
> >because the network path was not found yet it shows above for P:. Any ideas?
> >
> >Thanks
> >Zoltan
>
> You're welcome, Zoltan.  Is the share name "C laptop"?  If so, it has
> to be enclosed in quotes since it contains a blank character:
>
>    net use q: "\\SANSASKA-LAPTOP\C laptop"
>
> It's best to use only letters and numbers in a shared name.
> --
> Best Wishes,
> Steve Winograd, MS-MVP (Windows Networking)
>
> Please post any reply as a follow-up message in the news group
> for everyone to see.  I'm sorry, but I don't answer questions
> addressed directly to me in E-mail or news groups.
>
> Microsoft Most Valuable Professional Program
> http://mvp.support.microsoft.com
>