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
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