pcjunki Posted July 3, 2014 Share Posted July 3, 2014 is it possible to check for "open" sessions to my computer? I would like to know when a session is active to any of the shares on my pc the screen shot below shows where I usually check for open sessions. if anyone can provide a function, I can try and work it from there and create my own autoit script Link to comment Share on other sites More sharing options...
jdelaney Posted July 3, 2014 Share Posted July 3, 2014 (edited) Not sure of any API call, but you can do a Run("net sessions > output.txt"), and grab the output. You might need to prepend: Run(@comspec & " /c net sessions > output.txt") for the commands: net sessions /? Edited July 3, 2014 by jdelaney 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 More sharing options...
pcjunki Posted July 3, 2014 Author Share Posted July 3, 2014 (edited) I went old school and created a batch file. net session > c:\session.txt @echo off findstr /m "\\" c:\session.txt if %errorlevel%==0 (c:\session.txt) Edited July 3, 2014 by pcjunki Link to comment Share on other sites More sharing options...
jdelaney Posted July 3, 2014 Share Posted July 3, 2014 same difference 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 More sharing options...
jguinch Posted July 3, 2014 Share Posted July 3, 2014 _Net_Share_SessionEnum() jdelaney 1 Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF 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