Starting a CMD prompt hidden for cacti poller.php

After implementing a CACTI monitoring environment at our customer on a windows platform (huh). We had a problem that our CACTI poller scheduled task was visible when it was started.

I first created this vbscript. To start the commandprompt hidden.

Set WshShell = WScript.CreateObject("WScript.Shell")
Set WshExec = WshShell.Exec("php c:\Apache2\htdocs\cacti\poller.php")



But this method is much better. Because it fits on 1 line!
CreateObject("Wscript.shell").run "php c:\Apache2\htdocs\cacti\poller.php",0

In short to run the cacti poller hidden you only have to schedule the above line in a vbscript every 5 minutes.

Comments

Popular posts from this blog

Exchange Server Error -1018: How Microsoft IT Recovers Damaged Exchange Databases

Server and Domain Isolation Using IPsec and Group Policy

[Solved] The Group Policy client-side extension Internet Explorer Zonemapping failed to execute