.BAT

how do you open multiple programs in 1 icon. if it helps i am running windows 7. i know that you have to use a .BAT but i dont know what to put into it.
Last edited on
Well here is a sample of a CMD batch file that will start multiple programs.

1
2
3
4
5
6
7
8
9
@echo off
echo Opening Multiple Programs:
echo Starting Notepad:
start "" notepad
echo Starting MSWord2007:
start "" "C:\Program Files (x86)\Microsoft Office\Office12\WINWORD.exe"
REM Repeat in this format. The empty "" are required for paths not in System32 like MSWord. Just copy the lines that start with echo and start and change the information after them to load programs.

pause
it works but it opens up an extra window. how do i prevent that?


this is wat i got
1
2
3
4
5
6
@echo off
echo Opening Multiple Programs:
echo Starting SHIPMAP:
start "" "C:\Users\cainen172\Documents\Dev-Cpp\programs i made\adventure story\shipmap.JPG
echo Starting ADVENTURE STORY :
start "" "C:\Users\cainen172\Documents\Dev-Cpp\programs i made\adventure story\pers. adventure story.exe" 
pause
Long live work-around oriented programming. Seriously, this is the worst practice I've ever seen. If you want to display images in your program window, use SFML. Also read this: http://www.cplusplus.com/forum/articles/28558/
it works but it opens up an extra window. how do i prevent that?
You can't. If you want to use a shell then you get the cmd window.

The only way to avoid it is to write a Win32 GUI application that starts with a hidden window what launches your programs... in which case you might as well just do that all to begin with..

The other answer is to draw directly into your adventure story console window. :o)
ok kyon needs to back off because i figured out how to do it. in the batch file i put this

1
2
3
4
5
6
7
8
@echo off
echo Opening Multiple Programs:
echo Starting ADVENTURE STORY :
start "" "C:\Users\cainen172\Documents\Dev-Cpp\programs i made\adventure story\pers. adventure story.exe"
echo Starting SHIPMAP:
start "" "C:\Users\cainen172\Documents\Dev-Cpp\programs i made\adventure story\shipmap.JPG

return0 


notice return0 at the end
I never said that it was impossible to do this, it's just one of the worst things I can think of on doing.
Last edited on
Topic archived. No new replies allowed.