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: windows install corrupted after an update. Nothing's worked. Haven't backed up in a month, and i'm trying to do one final backup before i wipe it clean.

link|improve this question
feedback

1 Answer

up vote 2 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)

link|improve this answer
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
feedback

Your Answer

 
or
required, but never shown

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