autoITnewbie Posted April 28, 2005 Posted April 28, 2005 Hi, does Drivestatus works on windows 2k? because the below script gives the correct drive status for Windows XP drives but for Windows 2000, it says all drives are invalid. Please help! ======================== $mapdrive = ' ' $ascii = 90 While $ascii >= 69 and $MapDrive = ' ' $drive=chr($ascii) msgbox (0,'', 'drive ' & $drive) $DriveStatus = DriveStatus($drive & ':\') msgbox (0,'', 'drive status ' & $DriveStatus) If $DriveStatus = 'READY' then $mapdrive = ($drive & ':\') msgbox (0,'', 'Mapdrive ' & $MapDrive) exitloop endif $ascii=$ascii-1 wend
jdickens Posted April 29, 2005 Posted April 29, 2005 The help file claims:"The list of possible return values may be incomplete."I interpret that to say the result is inconsistant.Maybe this will bark you up the right tree:http://www.autoitscript.com/forum/index.ph...992entry70992J If I am too verbose, just say so. You don't need to run on and on.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now