How do I browse my network folders thru cmd?


Recommended Posts

  mclaren05 said:
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 /?

  Xahid said:
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?

  configure said:
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

    • I gave you an upvote because you are my favorite Neowinian!
    • Alienware 34 240Hz QD-OLED Monitor: A premium ultrawide for serious gamers - save $100! by Paul Hill Are you a serious gamer looking to save money on a monitor upgrade? If so, check out this deal on the Alienware 34 240Hz QD-OLED Gaming Monitor (AW3425DW), which is discounted by 13% from $799.99 to just $699.99. This ultrawide monitor features a 3,440 x 1,440 pixel display and the screen is curved for added immersion. Two features that will stand out to competitive gamers are the 240Hz refresh rate and 0.03ms GtG response time which will minimize any lagging from input to display, making you a more lethal player. Why QD-OLED matters for gamers and creators This Alienware uses QD-OLED (Quantum Dot Organic Light Emitting Diode) technology which combines OLED’s self-emitting LEDs with the color-enhancing capabilities of quantum dots. This results in higher brightness, a wider color gamut, deeper blacks, and wide viewing angles. With the 1800R curve built into this display, whatever you’re immersed in will wrap around, making your games more absorbing, potentially reducing other distractions. There is also VESA DisplayHDR TrueBlack 400 certification and 1,000 nits peak HDR brightness on this display. Gamers using this monitor will be able to get the best quality picture from this monitor to improve the experience and their competitiveness. It’s also good for creators who want to edit images and videos as they will see the content they're editing in the best ways possible, so they can be totally sure it’s ready for publication. Design, connectivity, and user experience The Alienware 34 uses an updated Interstellar Indigo design which is more compact and uses a flat stand. This frees up desk space compared to older Alienware designs and still allows for height, tilt, and swivel adjustments and VESA mount compatibility. Regarding ports, this monitor features 2x HDMI 2.1, 1x DisplayPort 1.4, 1x USB 5Gbps Type-B upstream, 1x USB 5Gbps Type-A downstream, 1x USB-C 5Gbps downstream with 15W charging. The USB-C port is for data and charging, not video input and the lack of KVM switch could be a drawback for some. If you decide to pick up this monitor, according to PCWorld, it does not include in-built speakers so you will need to connect your own. This is not a big issue because gamers looking for a premium playing experience will not want to rely on subpar in-built speakers anyway. Is the AW3425DW the right fit for you? Given its curved display, quality QD-LED display technology, and its fast response time, this monitor is a great pick for serious gamers looking for top-tier performance and immersion. Content creators who value color accuracy will also do well in picking up this Alienware monitor. Alienware 34: $699.99 (Amazon US) / MSRP $799.99 This Amazon deal is US-specific and not available in other regions unless specified. If you don't like it or want to look at more options, check out the Amazon US deals page here. Get Prime (SNAP), Prime Video, Audible Plus or Kindle / Music Unlimited. Free for 30 days. As an Amazon Associate, we earn from qualifying purchases.
    • Needs to happen quicker IMO. Pretty dang sick of the same articles reworded five different ways and reposted. I’m sure some people like reading the typical MS tells you why Windows 11 is better article over and over or the minute by minute countdown on the EOL of Windows 10, but I’m not one of them.
  • Recent Achievements

    • Rising Star
      Phillip0web went up a rank
      Rising Star
    • One Month Later
      Epaminombas earned a badge
      One Month Later
    • One Year In
      Bert Fershner earned a badge
      One Year In
    • Reacting Well
      ChrisOdinUK earned a badge
      Reacting Well
    • One Year In
      Steviant earned a badge
      One Year In
  • Popular Contributors

    1. 1
      +primortal
      545
    2. 2
      ATLien_0
      205
    3. 3
      +FloatingFatMan
      170
    4. 4
      Michael Scrip
      150
    5. 5
      Som
      131
  • Tell a friend

    Love Neowin? Tell a friend!