Deye Posted January 3, 2020 Share Posted January 3, 2020 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 More sharing options...
Subz Posted January 3, 2020 Share Posted January 3, 2020 Same for me although if you compile as x64 it works Deye 1 Link to comment Share on other sites More sharing options...
Deye Posted January 3, 2020 Author Share Posted January 3, 2020 how about: #include <File.au3> $aFolderList = _FileListToArray("C:\Windows\System32\drivers", "*", $FLTA_FOLDERS) _ArrayDisplay($aFolderList) still not getting it .. Link to comment Share on other sites More sharing options...
Subz Posted January 3, 2020 Share Posted January 3, 2020 Same result, if I compile with x64 it works fine Deye 1 Link to comment Share on other sites More sharing options...
Solution Subz Posted January 4, 2020 Solution Share Posted January 4, 2020 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) Deye 1 Link to comment Share on other sites More sharing options...
Deye Posted January 4, 2020 Author Share Posted January 4, 2020 fixes the oShell routine as well Good you remembered Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now