Connect network drive in DOS

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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
 
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
 
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
 
Steve:

That was it, thanks.

Zoltan

Steve Winograd said:
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
 
Back
Top