Ibrahim Posted October 10, 2007 Share Posted October 10, 2007 here is the thing,You know guys the computer management>shared folders>active session>....etc need to call it without having to start this sequence hope somebody help me to launch......Thankswhat i wanna do is create a loop that will continuously check the state of my shares sessionsI'm sorry for the double post [font="Arial Black"]My Stuff[/font]UPnP Port Forwarding Final.GateWay InformationThe GateWay Watcher(detect speeofing)Rightclick Any file --->Hide/UnhideThe Tip WatcherA PanelShare WatcherThe Arp WatcherThe Online License Checker Link to comment Share on other sites More sharing options...
smashly Posted October 10, 2007 Share Posted October 10, 2007 Hi again,you could use "Net session" command to see who's connected and what files they have open, also can close a connected session(s) using the same command with parameters..Can use "net share" command to find what available shares are on a pc..more info on net service commands HereYou can call the fsmgmt.msc snap in by using Run(@SystemDir & "\mmc.exe /s " & @SystemDir & "\fsmgmt.msc /s")But that doesn't get you to where you exactly want and it's not silent either...lolCheers Link to comment Share on other sites More sharing options...
Ibrahim Posted October 10, 2007 Author Share Posted October 10, 2007 first of all"How are u smashy" second of all i just want to call the entry without having to navigate to the group policy stuff in a loop that will tell me when there is a new session and retrieve the entries [font="Arial Black"]My Stuff[/font]UPnP Port Forwarding Final.GateWay InformationThe GateWay Watcher(detect speeofing)Rightclick Any file --->Hide/UnhideThe Tip WatcherA PanelShare WatcherThe Arp WatcherThe Online License Checker Link to comment Share on other sites More sharing options...
smashly Posted October 10, 2007 Share Posted October 10, 2007 (edited) I good thanks m8 You can use Run("cmd.exe /k net.exe share")oÝ÷ Ù:wp«lªÞ±ªÞ¢v©q.q©î±æ®¶se'VâgV÷C¶6ÖBæWRö²æWBæWR6W76öâgV÷C² to see what files are open/being accessed in your shares... Basically use stdout to read from either console window to use the info quietly.. Cheers.. Edited October 10, 2007 by smashly Link to comment Share on other sites More sharing options...
Ibrahim Posted October 10, 2007 Author Share Posted October 10, 2007 Here is what i did,Hope u like it #include <Process.au3> #Include <Constants.au3> #include <File.au3> while @error=0 sleep(5000) _RunDos("Net session >c:\session.bin") ;~ MsgBox(0,"intruders",FileRead("c:\session.bin")) $No=_FileCountLines ("c:\session.bin") if $No > 4 Then for $count=5 to $No-2 $read=FileReadLine("c:\session.bin",$count) $read=StringTrimLeft($read,2) $read=StringReplace($read," ",")) Username: ",1) $read=StringReplace($read," "," OS #",2) $read=StringTrimRight($read,19) TrayTip("Share REsource Opened","By: (("&$read,2,2) sleep(2000) Next EndIf WEnd do u think i should put this in the examples section of the forum? [font="Arial Black"]My Stuff[/font]UPnP Port Forwarding Final.GateWay InformationThe GateWay Watcher(detect speeofing)Rightclick Any file --->Hide/UnhideThe Tip WatcherA PanelShare WatcherThe Arp WatcherThe Online License Checker 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