all groups > sql server clients > june 2004 >
You're in the

sql server clients

group:

Drives Information


Drives Information Noor
6/25/2004 10:33:44 AM
sql server clients:
Can any body tell me that Can I know the number of drives in system as well
as the used and free spaces of that harddrive through xp_cmdshell

Thanks
Noor

Re: Drives Information Hari
6/25/2004 11:26:43 AM
Hi,

Execute the below command from query analyzer:-

master..xp_fixeddrives


The above command will give you all the local drives and free space in MB.
--
Thanks
Hari
MCDBA
[quoted text, click to view]

Re: Drives Information Noor
6/25/2004 12:22:24 PM
Thanks Hari, but it gave the primary drive letter and it's space. I want the
all available drives and it's spaces.

Thanks
Noor

[quoted text, click to view]

Re: Drives Information Hari
6/25/2004 5:57:21 PM
Hi Noor,

master..xp_fixeddrives will give the information for all fixed drives in the
machine.
The network drives will not be listed. For that you can use xp_cmdshell 'dir
driveletter'

--
Thanks
Hari
MCDBA
[quoted text, click to view]

AddThis Social Bookmark Button