Jump to content

Recommended Posts

Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...