Jump to content

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

Share this post


Link to post
Share on other sites

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)

 

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

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...