Undutchable Posted May 12, 2009 Posted May 12, 2009 Hi guys, Will I be getting into a nightmare if I pursue a way to find which files a process is using (or open by it)? From a quick googling I see it has to do with open handles and enumerating them? Any help from AutoIt in terms of functions, even if API related? Thanks and Cheers!
TurionAltec Posted May 12, 2009 Posted May 12, 2009 I seem to recall there being a UDF somewhere that can be used to find open handles, but as I recall it had certain issues. You could always write a wrapper around Sysinternal's handle:http://technet.microsoft.com/en-us/sysinte...s/bb896655.aspx
Undutchable Posted May 12, 2009 Author Posted May 12, 2009 Great Info TurionAltec by wrapper you mean a FileInstall() with a later ShellExecute() ? maybe a stupid question but still kinda novice here Thanks!
KaFu Posted May 12, 2009 Posted May 12, 2009 Yeah, but maybe more Run() with StdoutRead(). OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2024-Oct-13) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Oct-13) HMW - Hide my Windows (2024-Oct-19) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2025-May-18) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16)
TurionAltec Posted May 12, 2009 Posted May 12, 2009 Fileinstall yes. I would user Run instead as you can use it to capture the Stdout of Handle.exe (the text output) and process it using stdoutread. Also note, the registry entry: HKEY_CURRENT_USER\Software\Sysinternals\Handle\EulaAccepted will keep handle.exe from popping up the EULA. Also note that you're "not supposed" to redistribute sysinternals tools, so it should be for your "own uses"
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