counting system drives in c

Bhullarz's Avatar
Skilled contributor
Is it possible to know that how many drives are available in the system using Turbo C/C++?
and one more thing , can somebody give me any idea that how can recreate a DOS command "Rename" which can accept the names of number of files as input and can just rename those?
0
Bhullarz's Avatar
Skilled contributor
Is it possible in Visual C++ to do the same thing I have asked before?
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Quote:
Originally Posted by Bhullarz
Is it possible in Visual C++ to do the same thing I have asked before?
Yes very much. Check GetLogicalDrives Function