Jump to content

List all open file handles


Go to solution Solved by AdmiralAlkex,

Recommended Posts

Is it possible to return all open file handles?  I could fill pages with my unsuccessful attempts, the latest of which was handle.exe (which i am now going to attempt through psexec).  But if there is an autoit solution that interests me greatly.

,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Link to comment
Share on other sites

This gets open shares...otherwise, not sure what you are asking for:

#include <constants.au3>
Local $foo = Run(@ComSpec & ' /c for /f "skip=4 tokens=1" %a in (''net files'') do echo %a', @SystemDir, @SW_HIDE, $STDOUT_CHILD)
While 1
    $line = StdoutRead($foo)
    If @error Then ExitLoop
    MsgBox(0, "STDOUT read:", $line)
WEnd

While 1
    $line = StderrRead($foo)
    If @error Then ExitLoop
    MsgBox(0, "STDERR read:", $line)
WEnd
IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.
Link to comment
Share on other sites

explaining my problem and end goal is probably helpful, indeed.   I am watching an (edit: clarifying the source) internal app utilizing Captivate and actionscript create .sol files (flash cookies) that track progress.  They are persisting intermittently, and troubleshooting (googling the shiat out of) the behavior of the creating and disappearing as modules are navigated has led me to believe that the files may not be closed, and are being discarded rather than saved.  I am attempting to confirm or deny this at various stages throughout the tutorial.

Edited by boththose

,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Link to comment
Share on other sites

That did it, thank you Alkex.   Why this was occurring as revealed by process monitor: an amazing amount of  createfile-->query-->queryall-->closefile calls from the webpage serving the content  (many hundreds of times a second, such that my original request, if met, would have been useless).  Now whomever wrote that gets to go fix their ridiculous looping.

Edited by boththose

,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

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...