Pages

Finding Maximum Logical Drives With C Language

Problem: How to know current and maximum logical drives.
Solution
This is a program to know current drive’s name and the maximum logical drives to the system. Here getdisk () function is used to know current drive and setdisk () function is used to know maximum logical drives.  Programming code goes below →

#include<stdio.h>
#include<conio.h>
#include<dir.h>

{
  int disk, maxdrive;
  disk=getdisk()+'A';
  maxdrive=setdisk(2);
  printf("Current drive is : %c\n",disk);
  printf("Maximum logical drive is:%d\n",maxdrive);
}

Output  

18 comments:

shahanara said...

a good helpful program. thanks....

Lucky said...

Dear you have very nice blog..

Sarang Mangi (SindhiTech) said...

Very nice post. I am a programmer of Python, C, AS2, ASP and also html. Have a nice day. Will follow your blog.

Malok Mading said...

Great learning this cool information. Thanks for sharing this tips.

Cheap Flights said...

There are many places worth seeing in the city of Seattle. The galleries and museums present here are truly inspiring. The museums display art works of many artists. The lake in the city is used for swimming and boating. Those who get Seattle flights surely visit these attractions and enjoy themselves.
Los Angeles Flights|Cheap Flights to Las Vegas|Cheap Flights Tickets.

Janmejai said...

OOH Programming I Love C Language But the truth is that i have never done any programming after my classes.

Tonmoy Roy said...

Nice
Great Work Keep it up.......

myreviewsforall said...

i will try

New Inspiron Netbook said...

I'll also try it.. Thanks :-)

World Famous said...

C language, It's an interesting language. I do this sometimes and today I'll try these codes.
Thanks for sharing Test Paper

Jhon said...

interesting language thanks for sharing I'll try these codes.

TestKing said...

Thank you for sharing such relevant topic with us. I really love all the great stuff you provide. Thanks again and keep it coming.

mehran said...

nice and beautiful information plz keep it up sharing

Arpanet.MS said...

yes thst is right and i glad to see this website thanks for sharing this knowledge
ArpanetSoft.Com - Website for Blog, Forum, Poll and Free Submit Url
http://www.arpanetsoft.com
Thanks,

Steve said...

nice blog checkout my latest blog at

http://www.togetherfornature.blogspot.com

feel free to leave a comment

asif sajjad said...
This comment has been removed by the author.
asif sajjad said...
This comment has been removed by the author.
asif sajjad said...

great and free information for new one