Jump to content

cannondale

Members
  • Posts

    7
  • Joined

  • Last visited

Everything posted by cannondale

  1. I have the code below that creates a temporary folder. However, I have noticed that the folder attribute is set to read-only, which prevents me from deleting it at the end of the script. What am I missing? DirCreate ("C:\_WL")
  2. Thanks for the tips guys. The #RequireAdmin fixed the issue in Win7. Documenting here for future reference. Thanks
  3. Guys, I'm running the following uncompiled code under Win7 64: msgbox(0, "WinExists", WinExists("ABC")) ;Returns 1 msgbox(0, "WinGetState", WinGetState("ABC")) ;Returns 15 $EC = WinSetTitle("ABC", "", "XYZ") msgbox(0, "WinSetTitle", $EC) ;Returns 0 The WinSetTitle function fails to change the title and returns 0 under Win7. However, the code works correctly under XP. What am I missing?
  4. Thanks for the info. I have a mapped network drive X:. If I run DriveGetType("X:"), it returns "Network". However, when I run DriveGetDrive with network as the parm. it fails. I must be either missing something in the documentation or it's something with Win XP???
  5. Thanks for your reply. When I run the example code from Autoit Help (code below) with the "ALL" parm, the function runs fine. If I replace the ALL parm with NETWORK, it fails (@error = 1). Any ideas? Local $aArray = DriveGetDrive("ALL") If @error Then ; An error occurred when retrieving the drives. MsgBox(4096, "DriveGetDrive", "It appears an error occurred.") Else For $i = 1 To $aArray[0] ; Show all the drives found and convert the drive letter to uppercase. MsgBox(4096, "DriveGetDrive", "Drive " & $i & "/" & $aArray[0] & ":" & @CRLF & StringUpper($aArray[$i])) Next EndIf
  6. Guys, I'm running v3.3.8.0. When trying to get a list of network (mapped) drives using DriveGetDrive("NETWORK"), the function returns 1 in @error and no array. Is this a bug or am I missing something?
  7. I'm using Autoit 3.3.8.0. When using DriveSpaceFree to get the free space of a formatted CD, DriveSpaceFree returns 0. However, Windows reports the correct free space in Explorer. I checked the function documentation for DriveSpaceFree and there is no mention of any issues with removable media drives. What am I missing?
×
×
  • Create New...