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:
a good helpful program. thanks....
Dear you have very nice blog..
Very nice post. I am a programmer of Python, C, AS2, ASP and also html. Have a nice day. Will follow your blog.
Great learning this cool information. Thanks for sharing this tips.
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.
OOH Programming I Love C Language But the truth is that i have never done any programming after my classes.
Nice
Great Work Keep it up.......
i will try
I'll also try it.. Thanks :-)
C language, It's an interesting language. I do this sometimes and today I'll try these codes.
Thanks for sharing Test Paper
interesting language thanks for sharing I'll try these codes.
Thank you for sharing such relevant topic with us. I really love all the great stuff you provide. Thanks again and keep it coming.
nice and beautiful information plz keep it up sharing
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,
nice blog checkout my latest blog at
http://www.togetherfornature.blogspot.com
feel free to leave a comment
great and free information for new one
Post a Comment