Click here to Skip to main content
16,017,922 members
Home / Discussions / C#
   

C#

 
Questioncompressed drive Pin
tnaveen22-Oct-07 19:21
tnaveen22-Oct-07 19:21 
AnswerRe: compressed drive Pin
Andrei Ungureanu22-Oct-07 19:55
Andrei Ungureanu22-Oct-07 19:55 
Questionneed your support Pin
prasadbuddhika22-Oct-07 19:18
prasadbuddhika22-Oct-07 19:18 
AnswerRe: need your support Pin
pmarfleet22-Oct-07 21:07
pmarfleet22-Oct-07 21:07 
QuestionHow to export the datagrid to powerpoint Pin
ayyp22-Oct-07 19:06
ayyp22-Oct-07 19:06 
AnswerRe: How to export the datagrid to powerpoint Pin
Abhijit Jana22-Oct-07 20:49
professionalAbhijit Jana22-Oct-07 20:49 
Questionspecify the drive Pin
tnaveen22-Oct-07 18:50
tnaveen22-Oct-07 18:50 
AnswerRe: specify the drive Pin
Ajay.k_Singh22-Oct-07 20:23
Ajay.k_Singh22-Oct-07 20:23 
You may check free space of any drive by using an object of System.IO.DriveInfo class.

Therefore following line will provide you free disk space provided on c drive-

System.IO.DriveInfo dr= new System.IO.DriveInfo("C:\\");
long FreeSpace= dr.AvailableFreeSpace;

In case if you need to know about all logical drives available on a system, you may use Environment.GetLogicalDrives() method. This will return you a string array containing all logical drives available on a system.

Such as –

string[] drives = Environment.GetLogicalDrives();

I hope this helps.

-Dave.

Dave Traister,
ComponentOne LLC.
www.componentone.com

QuestionString Array to string object Pin
A.Asif22-Oct-07 14:10
A.Asif22-Oct-07 14:10 
AnswerRe: String Array to string object Pin
Scott Dorman22-Oct-07 14:48
professionalScott Dorman22-Oct-07 14:48 
AnswerRe: String Array to string object Pin
Fayu22-Oct-07 17:10
Fayu22-Oct-07 17:10 
AnswerRe: String Array to string object Pin
J4amieC22-Oct-07 22:06
J4amieC22-Oct-07 22:06 
AnswerRe: String Array to string object Pin
DEV 36 Dominik Goss22-Oct-07 22:40
DEV 36 Dominik Goss22-Oct-07 22:40 
GeneralRe: String Array to string object Pin
J4amieC22-Oct-07 23:01
J4amieC22-Oct-07 23:01 
GeneralRe: String Array to string object Pin
DEV 36 Dominik Goss22-Oct-07 23:16
DEV 36 Dominik Goss22-Oct-07 23:16 
Questionmonitor the internet traffic Pin
microgroup22-Oct-07 11:26
microgroup22-Oct-07 11:26 
AnswerRe: monitor the internet traffic Pin
Anthony Mushrow22-Oct-07 12:27
professionalAnthony Mushrow22-Oct-07 12:27 
AnswerRe: monitor the internet traffic Pin
Judah Gabriel Himango22-Oct-07 12:53
sponsorJudah Gabriel Himango22-Oct-07 12:53 
GeneralRe: monitor the internet traffic Pin
microgroup23-Oct-07 19:40
microgroup23-Oct-07 19:40 
Questionrefrence type & Value type which better and why? Pin
monafr8122-Oct-07 10:33
monafr8122-Oct-07 10:33 
AnswerRe: refrence type & Value type which better and why? Pin
Pete O'Hanlon22-Oct-07 10:48
mvePete O'Hanlon22-Oct-07 10:48 
GeneralRe: refrence type & Value type which better and why? Pin
Anthony Mushrow22-Oct-07 12:29
professionalAnthony Mushrow22-Oct-07 12:29 
AnswerRe: refrence type & Value type which better and why? Pin
Christian Graus22-Oct-07 12:55
protectorChristian Graus22-Oct-07 12:55 
AnswerRe: refrence type & Value type which better and why? Pin
Colin Angus Mackay22-Oct-07 23:33
Colin Angus Mackay22-Oct-07 23:33 
AnswerRe: refrence type & Value type which better and why? Pin
alisolution23-Oct-07 0:45
alisolution23-Oct-07 0:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.