autoITnewbie 0 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 Share this post Link to post Share on other sites