how to make a batch file

Discussion in 'Software' started by Ecin, Oct 17, 2003.

  1. Ecin

    Ecin Private First Class

    does anyone know how to make a batch file that will open in Windows XP Internet explorer and Zone Alarm at the same time?

    I have tried unsuccessfully to make it.. here's what I tried
    went to dos prompt and typed EDIT IEZ.bat
    cmd.exe
    C:\program files\iexplorer\iexplorer.exe
    C:\program files\zonealarm\zonealarm.exe

    when I run it it just goes to command prompt and sits there nothing happens.. thanks for reading.
     
  2. Kodo

    Kodo SNATCHSQUATCH

    put the word START before the path.
     
  3. Ecin

    Ecin Private First Class

    Re: Re: how to make a batch file

    thanks Kodo I tried that but I get an error here's is my batch file:
    cd\
    START c:\Program Files\Internet Explorer\iexplore.exe
    START c:\Program Files\ZoneAlarm\zonealarm.exe

    I get an error popup that says "Can't find C:\Program"

    I tried replacing C:\ with cd\ same error.. any ideas?
     
  4. Ken3

    Ken3 MajorGeek

    Put the path name and exe in quotes (").
     
  5. Ecin

    Ecin Private First Class


    hmm! that seemed to fix the problem Ken but now when I run the batch file all I get is the Dos screen opens 2 times really quick but I the programs do not run.. OH WELL I think maybe what I am trying to do is impossible!
     
  6. Ken3

    Ken3 MajorGeek

    Here's a sample batch file I did (test.bat) that works

    start iexplore.exe
    start taskmgr.exe

    Just noticed your file.... take out the "cmd" line and take out the last "r" in "iexplorer" - the file is iexplore.exe (that's what it is in Win2K). Results of your file should like this:

    "start C:\program files\iexplorer\iexplore.exe"
    "start C:\program files\zonealarm\zonealarm.exe"
     
    Last edited: Oct 17, 2003
  7. Adrynalyne

    Adrynalyne Guest

    Look at your old post when you asked this.


    It is right in there.



    Put both apps in quotes


    Pute a pipe in between, keep them on the same line.

    |
     
  8. Adrynalyne

    Adrynalyne Guest

    Open notepad.


    cmd.exe /c
    "C:\Program Files\Internet Explorer\iexplore.exe"|"C:\program files\zonealarm\zonealarm.exe"



    Save it as (all file types) with a .bat extension.

    Here ya go.

    This assume that is the correct exe path for Zone Alarm that you provided---it wasnt for IE. You had the wrong exe name and the wrong directory.

    If its the correct path, it will work.

    The start command really isnt needed, it is an assumed command.

    Edit: I guess there are a couple ways to do this ;)
     
  9. Kodo

    Kodo SNATCHSQUATCH

    yeah..been a realllllllly long time since I've done batch files..
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds