batch file help

Discussion in 'All other topics' started by bizkit101, May 12, 2009.

  1. bizkit101

    bizkit101 Member

    Joined:
    Sep 4, 2008
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    16
    hi everyone i am trying to make a batch file that runs when i load up mozilla firefox but i don't know how to do this. i don't want a batch file that runs firefox i want a batch file that runs with firefox after clicking on "firefox.exe". i am using this to make a log of every time firefox is run. don't ask me why i just want to.
    this is what i have:

    Code:
    @echo off
    cd C:\
    echo %DATE% %TIME% %USERNAME% >> firefoxlog.log
    
     
  2. vyper0

    vyper0 Member

    Joined:
    Dec 14, 2004
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    11
    whats with the scripting questions on this site? try google and look for some better resources.

    a few hints...
    appdeploy.com
    desktopengineer.com
    autoit.com
    visualbasicscript.com
    the scripting guys

    anyway...if i understand you correctly...it cant be done the way you want to. you cant have firefox.exe write to a logfile each time it is opened.

    you can however change the firefox shortcut to open a batch file that writes to a log file, launches FF and then quits.

    try this

    Code:
    @echo off
    
    cd C:\
    
    echo %DATE% %TIME% %USERNAME% >> firefoxlog.log
    start firefox
    
    let me know if this helps. if you are worried about the user seeing the flashing dos box then i would look at using vbsript or autoit.
     
    Last edited: May 14, 2009

Share This Page