list network shares from command prompt
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.
Trynet view
to get a list of computers.
If you have a computer's name, trynet 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 withnet use x: \\computer\share
(replace X: with the drive letter you want to assign).
(source)