Is it possible to browse a network for shares from the Windows command prompt?

I want to map a drive to a network share (pushd), but I can't remember the exact name of the machine or share. Is there a way to browse the network to find the shares via the command prompt?

Background: my Windows install was corrupted after an update and nothing's working now. I haven't backed up in a month, and I'm trying to do one final backup before I wipe it clean.

up vote 27 down vote accepted

Try
net view
to get a list of computers. If you have a computer's name, try
net view \\computer to get a list of shares.

(source)

Once you know what share you're after, you want to go with net use. Map a drive with
net use x: \\computer\share
(replace X: with the drive letter you want to assign).

(source)

  • thanks. It looks like I may have to start the network service for this to work (I'm running from the system recovery options command prompt). I think I need to use net start, but I'm not sure which service to start for a wired Ethernet connection. any idea? – sharoz Apr 23 '11 at 23:38
  • Afraid I don't off the top of my head. Which flavor of Windows? – Chris_K Apr 24 '11 at 2:26
  • It was windows Vista. Nevermind though. I just bought a USB drive (2tb for 100 bucks!) since my nas was such a pain. Thanks for the help though! – sharoz Apr 24 '11 at 3:24
  • @sharoz: The services might be "Workstation" (SMB client) and "Browser" (computer list manager). – grawity Apr 24 '11 at 13:36

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.