1.

Solve : win XP batch files?

Answer»

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?Show us your scriptIt 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. Quote


Example:

@echo off
start PGM1
start PGM2
exit

Hope this helps.


???this just open two cmd prompts with the programs name on the title bar and thats it 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 resultI 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/


Discussion

No Comment Found