Jump to content

Recommended Posts

Posted

Hello Autoit Community

I have Problem with DriveGetDrive( "NETWORK") on Windows Vista and Windows 7.

If start the same code with #RequireAdmin on Computer then DriveGetDrive( "NETWORK") faild.

without works it perfect. Can everbody help ?

Tested with Autoit V3.3.2.0 Is it Autoitbug ?

; (with #RequireAdmin ) Does not work on Win Vista / Win 7

#RequireAdmin

$var = DriveGetDrive( "NETWORK")

if not @error then

For $i = 1 to $var[0]

$maped_path=DriveMapGet($var[$i])

msgbox(0,$var[$i],$maped_path)

Next

endif

exit

; (without #RequireAdmin )work on Win Vista / Win 7

$var = DriveGetDrive( "NETWORK")

if not @error then

For $i = 1 to $var[0]

$maped_path=DriveMapGet($var[$i])

msgbox(0,$var[$i],$maped_path)

Next

endif

exit

Regards

lite

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...