Posts

Showing posts from October, 2009

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.