?
Solved

Commnad to list all Drives

Posted on 2003-03-03
5
Medium Priority
?
3,613 Views
Last Modified: 2007-12-19
Is there any shell command which will list all the existing
drives?
0
Comment
Question by:prashanthgn
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 2

Expert Comment

by:bonzai
ID: 8056766
Hi

try "NET USE" without parameters
0
 
LVL 2

Expert Comment

by:IeuanJ
ID: 8056770
here is a site with a full list of msdos commands, I dont know off the top of my head of one that does what you want but you might find something here.

http://www.computerhope.com/msdos.htm
0
 

Accepted Solution

by:
M69_Bv3 earned 200 total points
ID: 8058005
Hi prashanthgn!

If u want to list all the existing drives, u can use this:

===

@for %%a in (c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z) do @if exist %%a:\ @echo %%a:\

===

This cmd will list all drives :)

I hope that will help u ;)

++

M69 [Bv3]
0
 

Author Comment

by:prashanthgn
ID: 8062382
Hi Bonzai,

  Thanks for helping, but this command will just list the network mapped drives, I also need to be able to get the local drive names
0
 

Author Comment

by:prashanthgn
ID: 8062453
Hi,  Thanks a lot..it worked fine
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The following is a collection of cases for strange behaviour when using advanced techniques in DOS batch files. You should have some basic experience in batch "programming", as I'm assuming some knowledge and not further explain the basics. For some…
TOMORROW TOMORROW.BAT is inspired by a question I get asked over and over again; that is, "How can I use batch file commands to obtain tomorrow's date?" The crux of this batch file revolves around the XCOPY command - a technique I discovered w…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question