Sign in to follow this  
Followers 0
xForce

Problem with "DriveGetDrive" in Windows 7

3 posts in this topic

Hi everybody

I have problem when use DriveGetDrive("type")

It work well on Windows XP

but not working with Windows 7

code

$dr = DriveGetDrive("REMOVABLE")
MsgBox(0,"USB","Found " & $dr &" drive")

Result in Windows 7

Posted Image

Plenty hope you helps

Share this post


Link to post
Share on other sites



Function DriveGetDrive returns an Array. So perhaps you're coding incorrectly. See the helpfile link, it explains usage better than I could..

- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites

Thank you, I also found them :)

$var = DriveGetDrive( "Removable" )
If NOT @error Then
        MsgBox(4096,"Drive " , $var[1])
EndIf

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