How do I browse my network folders thru cmd?


Recommended Posts

How do I browse my network folders thru cmd? Just like I type "cd C:" to put the cursor at C: I want to do this for my network folders.

I don't think that you can do that before making the shared folder a network drive. To make a network drive, use this command: net use z: \\computer\sharedfolder

More details with: net use /?

you have to mount the network folder before browsing ..

Wait... you mean in WINDOWS ? :o

There are other OSs that use the a:, b:, c:, d:, etc ideology?

I don't think that you can do that before making the shared folder a network drive. To make a network drive, use this command: net use z: \\computer\sharedfolder

More details with: net use /?

Oh I didnt know it couldnt be done. Thanks.

There is no need to mount anything to "browse" or view the contents.

net view \\computername or \\ipaddress

will give you the shares on that machine.

dir \\computername\share will list the contents of that share.

***

C:\>dir \\p4-28g\test

Volume in drive \\p4-28g\test has no label.

Volume Serial Number is B4B9-A697

Directory of \\p4-28g\test

01/04/2009 12:11 AM <DIR> .

01/04/2009 12:11 AM <DIR> ..

01/04/2009 12:11 AM 9 test.txt

1 File(s) 9 bytes

2 Dir(s) 42,254,712,832 bytes free

***

You can manipulate files from the cmd prompt as well with no need to mount anything, copy, delete, etc.

***

C:\>del \\p4-28g\test\test.txt

C:\>dir \\p4-28g\test

Volume in drive \\p4-28g\test has no label.

Volume Serial Number is B4B9-A697

Directory of \\p4-28g\test

01/28/2009 07:29 AM <DIR> .

01/28/2009 07:29 AM <DIR> ..

0 File(s) 0 bytes

2 Dir(s) 42,254,721,024 bytes free

***

You could also just use pushd to temp mount a drive letter to a unc

***

C:\>pushd \\p4-28g\test

Y:\>dir

Volume in drive Y has no label.

Volume Serial Number is B4B9-A697

Directory of Y:\

01/28/2009 07:29 AM <DIR> .

01/28/2009 07:29 AM <DIR> ..

0 File(s) 0 bytes

2 Dir(s) 42,254,630,912 bytes free

Y:\>popd

C:\>

***

edit: as another option if you really want to work with unc from the cmd prompt.. Just grab powershell from MS

http://www.microsoft.com/windowsserver2003...ll/default.mspx

Works on xpsp2, vista, 2k3 and is part of 2k8, etc.

***

Windows PowerShell

Copyright ? 2006 Microsoft Corporation. All rights reserved.

PS C:\> cd \\p4-28g\test

PS Microsoft.PowerShell.Core\FileSystem::\\p4-28g\test> dir

Directory: Microsoft.PowerShell.Core\FileSystem::\\p4-28g\test

Mode LastWriteTime Length Name

---- ------------- ------ ----

-a--- 1/28/2009 7:50 AM 8 test2.txt

PS Microsoft.PowerShell.Core\FileSystem::\\p4-28g\test>

***

Edited by BudMan

Yes, I know it works for dir'ing and stuff like that.

But can I actually put myself in a share?

Instead of:

Microsoft Windows [Version 6.0.6001]

Copyright © 2006 Microsoft Corporation. All rights reserved.

C:\Users\Administrator>

Have something like:

Microsoft Windows [Version 6.0.6001]

Copyright © 2006 Microsoft Corporation. All rights reserved.

\\laptop\files>

with the powershell yes.. I clearly stated this.. But you stated

"How do I browse my network folders thru cmd"

Browinging has little to do with having your prompt at the unc path.

No the answer is YES.. JFC dude are you really that dense??? To put your prompt at the "unc path".. Grab powershell -- its FREE from MS!

Or as others have already stated you could always just map a share to a drive letter.. So for example \\somecomputer\share = Z:\

Now cd z: and your at the prompt on that share.

Or even faster is to just use pushd \\somecomputer\share and it will create a temp map of of a drive letter, so you you will be at that path on your cmd prompt.. I clearly went over that option in my first post.

is as simple as typing in windows explorer address bar

c:\dir \\computername\c$

and donde, you can browse like that all computers in your network, just remember that some computer names are not accesible through DOS console if the hayve weird names

well browsing with explorer is not really what he asked.. But sure yes you can browse unc paths with explorer, not sure what that c:\dir is suppose to mean..

\\computername\share is what is needed in the address bar, depending what share method is used, and what permissions are set, etc. you might not be able to access the admin shares c$ for example

you can also access any share directly with explorer by just going run \\computername and then clicking on the share you want, or \\computername\share to directly access.

But again this is not really from a cmd prompt ;)

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • New PowerToys update fixes memory leaks and other issues by Taras Buria Another bug-fixing update is available for PowerToys version 0.100. After releasing version 0.100.1 with a bunch of bug fixes and patches, Microsoft pushed version 0.100.2 to address two important issues with one of Command Palette Dock's features. With PowerToys 0.100.2, Microsoft fixed the performance meter displaying incorrect values and memory leaks, which are particularly unwanted things in the current situation with overpriced PC hardware. Here is the changelog: Reverted a Performance Monitor dock refresh change that forced item refreshes on every metric update Fixed a memory leak in the Performance Monitor dock extension by reusing stable network upload/download band items instead of creating new list items on each refresh For those unfamiliar, Command Palette Dock is a relatively new addition to PowerToys. It is a taskbar-like tool that you can keep on top of the screen to pin various useful widgets, commands, and more. It can display time, weather, your PC's performance metrics, and more. Microsoft introduced the Command Palette Dock in March 2026 in PowerToys 0.98. Microsoft has dedicated documentation for Command Palette Dock, and you can check it out on the official Microsoft Learn website. You can update PowerToys to the latest version by going to Settings > General and clicking "Check for updates." Alternatively, you can download the installer from GitHub using this link. In other news, Microsoft is working on a new window-management utility for PowerToys. Called Alt Window Cycle, it will let you use the Alt + ` shortcut to switch between different windows in a single app. You can learn more about the tool here.
    • You did take leaf out of Trumps book already and had brexit - only to harm yourself. The same goes with this AI nonsense. The obvious solution for these companies is to move their head office to Brussels. I can see quite much irony there... 🙂
    • Thank gawd AT&T never worked with the US gov....
    • Wonder if they are trying to slow down Linux traction (not saying this is the only factor) in the consumer space. With the most pressure probably being steam deck/box, etc.
  • Recent Achievements

    • First Post
      OffsetAbs earned a badge
      First Post
    • Reacting Well
      OffsetAbs earned a badge
      Reacting Well
    • First Post
      Kolakid60 earned a badge
      First Post
    • One Month Later
      xvvxcvv earned a badge
      One Month Later
    • Week One Done
      xvvxcvv earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      421
    2. 2
      +Edouard
      180
    3. 3
      PsYcHoKiLLa
      133
    4. 4
      neufuse
      71
    5. 5
      Steven P.
      70
  • Tell a friend

    Love Neowin? Tell a friend!