Jump to content
Sign in to follow this  
autoITnewbie

Question about driveStatus

Recommended Posts

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

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...