List Windows Shares from the cmd line?

I'm asking for the cmd that will list the share name and the folder path and the description?

I've used 'net view \\servername' and it kicks out the Share name and Type.  I need the folder path and the description too.

Windows Server 2003 SP2
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

JohnBusiness Consultant (Owner)Commented:
Try NET USE (no parameters). That gives me what I need.
Bryant SchaperCommented:
Invoke-Command -ComputerName xxxxx -ScriptBlock { gwmi -q "SELECT * FROM Win32_Share WHERE
 Name != 'ADMIN$' AND Name != 'IPC$'" }"

sub computername at xxxx

But I used powershell, not sure if it will work for you.
net.exe share

Open in new window

wmic.exe path win32_share get Caption,Name,Path

Open in new window

or remote:
wmic.exe /node:<ServerName> path win32_share get Caption,Name,Path

Open in new window

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
JavaScript Best Practices

Save hours in development time and avoid common mistakes by learning the best practices to use for JavaScript.

Raheman M. AbdulSenior Infrastructure Support Analyst & Systems DeveloperCommented:
You can get from powershell:
Open Powershell cmd by  Start -> Run -> Powershell
Then in powershell window type:
 Get-WmiObject -Class win32_share

Open in new window

NVITEnd-user supportCommented:
You can either
... at the server: net share which shows the shares for that server

... at the client: rmtshare \\servername
Here's one link you can get rmtshare at: Windows 2000 Resource Kit
Mike TLeading EngineerCommented:

There are many ways to do this. I like the GUI method: type fsmgmt.msc from run or command shell.
All other methods have already been mentioned above :).

mobotAuthor Commented:
This is what worked for me.  Sorry for the delay in getting back to everyone.  And thanks to all for your suggestions.

wmic.exe path win32_share get Caption,Name,Path
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Networking

From novice to tech pro — start learning today.