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

Author Topic: win XP batch files  (Read 6952 times)

0 Members and 1 Guest are viewing this topic.

_johnny_

  • Guest
win XP batch files
« on: March 09, 2005, 06:02:12 PM »
hi
i recently upgraded to xp and fnd batch dont work proply 4 me, i tryin to do somethin real simple like just open 2 programmes, it opens 1 and keeps the cmd prompt up and with blinking cursur and nothing else,when i close that programme the other one opens. ??? do i have add something to make the second 1 open by itself?

Dusty



    Egghead

  • I could if she would, but she won't so I don't.
  • Thanked: 75
  • Experience: Beginner
  • OS: Windows XP
Re: win XP batch files
« Reply #1 on: March 09, 2005, 08:10:41 PM »
Show us your script
One good deed is worth more than a year of good intentions.

Sidewinder



    Guru

    Thanked: 139
  • Experience: Familiar
  • OS: Windows 10
Re: win XP batch files
« Reply #2 on: March 10, 2005, 07:40:27 AM »
It makes sense really. When you launch the PGM1, it gets control and the batch file is suspended. When you exit PGM1, control is returned to the batch file which then launches PGM2.

To accomplish what you want, use the START command to launch both PGM1 and PGM2. If you want the close the command window, put an EXIT statement at the end of your batch file.

Example:

@echo off
start PGM1
start PGM2
exit

Hope this helps.  8)
The true sign of intelligence is not knowledge but imagination.

-- Albert Einstein

_johnny_

  • Guest
Re: win XP batch files
« Reply #3 on: March 10, 2005, 01:50:12 PM »
Quote

Example:

@echo off
start PGM1
start PGM2
exit

Hope this helps.  8)


???this just open two cmd prompts with the programs name on the title bar and thats it ???

_johnny_

  • Guest
Re: win XP batch files
« Reply #4 on: March 10, 2005, 01:55:48 PM »
Quote
Show us your script


its just a simple batch run command:
"C:\Program Files\Microsoft Office\OFFICE11\OUTLOOK.EXE"
"C:\Program Files\MSN\MSNCoreFiles\msn6.exe"

i ve tried it with diff programmes as well as files with he same result

Dusty



    Egghead

  • I could if she would, but she won't so I don't.
  • Thanked: 75
  • Experience: Beginner
  • OS: Windows XP
Re: win XP batch files
« Reply #5 on: March 10, 2005, 03:01:52 PM »
I assume you have upgraded to XP from Win.98se or some such OS which is DOS based.  XP does NOT have DOS just emulation so many Dos based progs will not perform as they did in Win.9x systems.  I think Sidewinder's response is correct tho' I'm not sure of the Start command syntax.  You could look here for an answer:

http://www.ss64.com/nt/
One good deed is worth more than a year of good intentions.