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
Batch script to count number of times ie is run
Moderator: DosItHelp
-
- Expert
- Posts: 391
- Joined: 19 Mar 2009 08:47
- Location: Iowa
You'd probably be better off by forcing IE/firefox to be launched by a script:
IE.cmd
FF.cmd
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).
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).