Page 1 of 1

Batch script to count number of times ie is run

Posted: 13 Mar 2009 10:54
by phil-k
i work in a library and we need to keep track of how much our computers are being used.

i think the best way would be a batch script that detects when ie or firefox is run and then adds +1 to a text document.

i would like the batch to startup with windows but that's easy enough, and i would like it to run in the background.

i just recently started tinkering with batch files and can make very basic question and answer type things. but i pick up things like this pretty quick

if you could give me some starting points it would be appreciated

thanks alot

phil-k

Posted: 19 Mar 2009 09:33
by avery_larry
You'd probably be better off by forcing IE/firefox to be launched by a script:

IE.cmd

Code: Select all

echo 1>>c:\%date:/=.%.IE
start "IE" iexplore.exe


FF.cmd

Code: Select all

echo 1>>c:\%date:/=.%.FF
start "FF" firefox.exe


Remove your direct links and put shortcuts to these files instead. You can even change the shortcut name/icon so nobody would really know (set the program shortcut to start minimized).

Posted: 19 Mar 2009 15:38
by *SCRIPTER*
---- :idea: