Jump to content

windows7 x64, run cmd generate lot of process


Recommended Posts

Hi,

I use a script (autoit3 x32) on several machines to iste all running process, it put this into our intranet server.

The script redo itself every 5sec

Under xp, no problem, runs like a charm

Under win7 pro x64, every 5sec it create a new cmd.exe and conhost.exe process !

Any idea would be great help, here is the script :

$kname = @ComputerName

$file_path = "\\intra_server\Documents\webserver\www\intranet\network\cache\" & $kname & ".txt"
$command = StringFormat('pslist.exe -accepteula %s > "%s"',"",$file_path)

$i=0
While $i <= 10
    Run(@ComSpec & ' /C ' & $command, @ScriptDir, @SW_HIDE)
    Sleep(5000) ;five seconds
WEnd

Win7 pro x64. scripts compiled to x64. - Autoit v3.3.6.1 | Scite 1.79

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