Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: HELP!!! New to creating Batch files  (Read 2785 times)

0 Members and 1 Guest are viewing this topic.

mikev9359

  • Guest
HELP!!! New to creating Batch files
« on: April 03, 2007, 06:49:13 AM »
I am trying to create a batch file to automatically open Internet Explorer, Calculator and Word
I have written:
@ECHO OFF
REM This batch file launches multiple programs by pointing to their executables
"C:\Program Files\Internet Explorer\IEXPLORE.EXE"
"C:\Windows\system32\calc.exe"
"C:\Program Files\Microsoft Office\Office\Winword.exe"
Exit
This opens IE, but CALC only opens when I close IE. word does nothing at all.
I then tried to get IE to open maximized (Start /Max), but this gives me all sorts of errors.
I looked all over, but I am such a novice, I can't identify the right commands to perform this. Can anyone provide the correct commands &/or direction to where I can find it in

Carbon Dudeoxide

  • Global Moderator

  • Mastermind
  • Thanked: 169
    • Yes
    • Yes
    • Yes
  • Certifications: List
  • Experience: Guru
  • OS: Mac OS
Re: HELP!!! New to creating Batch files
« Reply #1 on: April 03, 2007, 07:05:55 AM »
This goes in the MS DOS forum but try:
Quote
@ECHO OFF
REM This batch file launches multiple programs by pointing to their executables
start C:\Program Files\Internet Explorer\IEXPLORE.EXE
start C:\Windows\system32\calc.exe
start C:\Program Files\Microsoft Office\Office\Winword.exe
Exit

And don't double post  ;)
http://www.computerhope.com/forum/index.php/topic,33263.0.html
« Last Edit: April 03, 2007, 07:21:05 AM by Carbon Dudeoxide »

mikev9359

  • Guest
Re: HELP!!! New to creating Batch files
« Reply #2 on: April 03, 2007, 02:15:45 PM »
Thanks, I wasn't sure which forum, but I thought I only posted once.

I tried your suggestion (another said the same thing) & now I only get Calculator to open. The other 2 are giving me errors stating "Windows cannot find C:Program..."

With "start" removed, only IE opens, but Calculator will open when I close IE. Word??? Doesn't do a thing.

If I leave the quotes & place the command START before each line, I get a command window opened for each one.
Title: C:\Windows\system32\calc.exe
Title: C:\Program Files\Microsoft Office\Office\Winword.exe
Title: C:\Program Files\Internet Explorer\IEXPLORER.EXE

The command line prompt for all 3 is:
C:\Documents and Settings\owner\desktop>