Modify ↓
Opened 18 years ago
Closed 18 years ago
#395 closed Bug (No Bug)
DriveGetDrive and @ScriptDir under windows Vista run as administrator
| Reported by: | Owned by: | ||
|---|---|---|---|
| Milestone: | Component: | AutoIt | |
| Version: | 3.2.12.0 | Severity: | None |
| Keywords: | Cc: |
Description
If you mount a drive then run a compiled script as administrator. The code below illustrates the issue. Note if you run the copiled script without the rights elevation it works as expected
$var = DriveGetDrive( "NETWORK" ) If NOT @error Then MsgBox(4096,"", "Found " & $var[0] & " drives") For $i = 1 to $var[0] MsgBox(4096,"Drive " & $i, $var[$i]) Next Else MsgBox(0,"Error",@error) EndIf
Attachments (0)
Note:
See TracTickets
for help on using tickets.

This is not unexpected (to me) nor is it a bug. This blog explains it better than I can. You can test with Windows Explorer (with elevated privileges) that the issue isn't isolated to AutoIt.
Closing as no bug.