Jump to content

Small test


Deye
 Share

Go to solution Solved by Subz,

Recommended Posts

will this show the "etc" folder for you? ,in case you have it under C:\Windows\System32\drivers

it doesn't show for me ..

Global $oShellApplication = ObjCreate("Shell.Application")
Global $oShellFolder = $oShellApplication.NameSpace("C:\Windows\System32\drivers")
Global $oShellFolderItems = $oShellFolder.Items()

For $oShellFolderItem In $oShellFolderItems
    ConsoleWrite($oShellFolderItem.Name & @CRLF)
Next

Thanks

Deye

Link to comment
Share on other sites

  • Solution

If you want to use 32-bit compiled script you can use:

#include <File.au3>
#include <WinAPIFiles.au3>
;~ Disable 64-bit WOW64 system folder redirection
_WinAPI_Wow64EnableWow64FsRedirection (False)
$aFolderList = _FileListToArray("C:\Windows\System32\drivers", "*", $FLTA_FOLDERS)
;~ Re-enable 64-bit WOW64 system folder redirection
_WinAPI_Wow64EnableWow64FsRedirection (True)
_ArrayDisplay($aFolderList)

 

Link to comment
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
 Share

  • Recently Browsing   0 members

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