Re: Connect network drive in DOS

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Steve:

That was it, thanks.

Zoltan

"Steve Winograd [MVP]" wrote:

In article <FEB6B7DD-4339-4300-90E9-9C41AA58673B@xxxxxxxxxxxxx>,
Zoltan K. <ZoltanK@xxxxxxxxxxxxxxxxxxxxxxxxx> 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

.



Relevant Pages

  • Re: dir command vis-a-vis hidden files
    ... Are you using the DIR command in a Command Prompt window? ... (I just tried from the Win7 GUI Desktop by clicking Start and typing "dir" (no quotes) ... In a Command Prompt window, the Dir command should respect the Attributes setting for each file and folder. ... regardless of the setting in folder options. ...
    (microsoft.public.windows.vista.file_management)
  • Re: Connect network drive in DOS
    ... open a command prompt window and type: ... Your original answer answered my question but when I use the command it ... because the network path was not found yet it shows above for P:. ... You're welcome, Zoltan. ...
    (microsoft.public.windowsxp.network_web)
  • Re: Cannot access Blue Angels website
    ... ping www.blueangels.navy.mil ... tracert www.blueangels.navy.mil ... What happens if you open a Command Prompt window and run the following command? ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Cannot access Blue Angels website
    ... What happens if you open a Command Prompt window and run the following command? ... How about ping 199.211.210.139? ... How about tracert 199.211.210.139? ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: searching for files by extension
    ... In "DOS" (and in the Command Prompt window), ... For my computer, now running the Win7 beta, Search finds the .pst files even with the extension hidden, but it's not obvious from the Results list that it is a .pst file. ... When I have problems with Search in the GUI, I revert to good ol' DOS (the Command Prompt window in Vista, WinXP, Win7...). ...
    (microsoft.public.windows.vista.general)