Batch script to count number of times ie is run

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
phil-k
Posts: 1
Joined: 13 Mar 2009 10:39

Batch script to count number of times ie is run

#1 Post by phil-k » 13 Mar 2009 10:54

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

avery_larry
Expert
Posts: 391
Joined: 19 Mar 2009 08:47
Location: Iowa

#2 Post by avery_larry » 19 Mar 2009 09:33

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

*SCRIPTER*
Posts: 18
Joined: 16 Mar 2009 08:18
Location: N/A
Contact:

#3 Post by *SCRIPTER* » 19 Mar 2009 15:38

---- :idea:

Post Reply