GTAStunting
General => General Discussion => Expression Section => Topic started by: Cody on January 12, 2008, 12:02:21 PM
-
Instructions:
Download "StormLauncher v1 Unedited.bat", right click the file, click edit, and then edit the things like myprog1, myprog2, ect.. with the programs you want to launch.
Like if you wanted to launch something like IE it'd be like:
set prog1=IEXPLORE.EXE
set prog1name=Internet Explorer
or if you wanted to open something like windows messenger it'd be like this.
NOTE: you only neet to put your URL in quotes if it has a space in it.
set prog3="C:\Program Files\Messenger" msmsgs.exe
set prog3name=Windows Messenger
Simple enough, honestly.
If you're still having trouble download "StormLauncher Example" or PM/MSN me.
Source for StormLauncher v1 Unedited:
@echo off
:OPTIONS! This is the only thing you need to edit, although if you wish to you may edit the actual coding.\\\
:but make sure you know what you're doing\\\
:Launch Program 1\\
set prog1=myProgram1
set prog1name=Prog1Name
:----------------//
:Launch Program 2\\
set prog2=myProgram2
set prog2name=Prog2Name
:----------------//
:Launch Program 3\\
set prog3=myProgram3
set prog3name=Prog3Name
:----------------//
:Launch Program 4\\
set prog4=myProgram4
set prog4name=Prog4Name
:----------------//
:Launch Program 5\\
set prog5=myProgram5
set prog5name=Prog5Name
:----------------//
cls
:/code, only edit if you know what you're doing./
:
title StormLauncher v1.0
echo ///The StormLauncher v1 \\\
echo \\\Created by Stormlexer///
echo .
:echos the program names and asks for a program.
echo 1.%prog1name%
echo 2.%prog2name%
echo 3.%prog3name%
echo 4.%prog4name%
echo 5.%prog5name%
set /p var=Select A Program Number!:
:The IF Selections.
if "%var%"=="1" GOTO launch1
if "%var%"=="2" GOTO launch2
if "%var%"=="3" GOTO launch3
if "%var%"=="4" GOTO launch4
if "%var%"=="5" GOTO launch5
:The Launching of the programs
:launch1
cls
start %prog1%
echo Launching %prog1name%!
GOTO endofprog
:launch2
cls
start %prog2%
echo Launching %prog2name%!
GOTO endofprog
:launch3
cls
start %prog3%
echo Launching %prog3name%!
GOTO endofprog
:launch4
cls
start %prog4%
echo Launching %prog4name%!
GOTO endofprog
:launch5
cls
start %prog5%
echo Launching %prog5name%!
GOTO endofprog
:endofprog
echo Exiting.
exit
Source for StormLauncher Example:
@echo off
:^ignore that
:OPTIONS! This is the only thing you need to edit, although if you wish to you may edit the actual coding.\\\
:but make sure you know what you're doing\\\
:Launch Program 1\\
set prog1=IEXPLORE.EXE
set prog1name=Internet Explorer
:----------------//
:Launch Program 2\\
set prog2="C:\Program Files\Notepad++\" notepad++.exe
set prog2name=Notepad++
:----------------//
:Launch Program 3\\
set prog3="C:\Program Files\Messenger" msmsgs.exe
set prog3name=Windows Messenger
:----------------//
:Launch Program 4\\
set prog4=C:\ijji\ENGLISH\Gunz\GunzLauncher.exe
set prog4name=Gunz: The Duel
:----------------//
:Launch Program 5\\
set prog5=C:\Dev-C++\devcpp.exe
set prog5name=Dev-C++
:----------------//
cls
:/code, only edit if you know what you're doing./
:
title StormLauncher v1.0
echo ///The StormLauncher v1 \\\
echo \\\Created by Stormlexer///
echo .
:echos the program names and asks for a program.
echo 1.%prog1name%
echo 2.%prog2name%
echo 3.%prog3name%
echo 4.%prog4name%
echo 5.%prog5name%
set /p var=Select A Program Number!:
:The IF Selections.
if "%var%"=="1" GOTO launch1
if "%var%"=="2" GOTO launch2
if "%var%"=="3" GOTO launch3
if "%var%"=="4" GOTO launch4
if "%var%"=="5" GOTO launch5
:The Launching of the programs
:launch1
cls
start %prog1%
echo Launching %prog1name%!
GOTO endofprog
:launch2
cls
start %prog2%
echo Launching %prog2name%!
GOTO endofprog
:launch3
cls
start %prog3%
echo Launching %prog3name%!
GOTO endofprog
:launch4
cls
start %prog4%
echo Launching %prog4name%!
GOTO endofprog
:launch5
cls
start %prog5%
echo Launching %prog5name%!
GOTO endofprog
:end of the program
:endofprog
echo Exiting.
exit
Download dem:
-
Gonna download, see if i can learn anything
-
I'm to go ahead and say what 90% of the forum is thinking.
What?
-
I'm to go ahead and say what 90% of the forum is thinking.
What?
I did another thing in batch cause I was bored.
-
Batch files can be really useful, ive made a few of them. Very boring in my opinion though lol.
Cool little tool, thanks. I might use it.
-
I wouldn't use it myself tbh.
-
Its probarbly easier to go to the program its self lol, I was just being nice
-
Its probarbly easier to go to the program its self lol, I was just being nice
I know, thats why I'm not gonna use it.
-
Ey Storm, i've got this so it loads media player up, but is there any way it could load a playlist ?
-
Tis cool your having fun and making useful things man. Obviously there are better things to code a launcher in, like VB or somin, but still well done
-
Tis cool your having fun and making useful things man. Obviously there are better things to code a launcher in, like VB or somin, but still well done
VB is better for more powerful launchers with more options however for more simple applications like this one it is better to use DOS in my opionion.
-
Ey Storm, i've got this so it loads media player up, but is there any way it could load a playlist ?
I think so, this might work..
start "dir of program" program.exe -playlistname.filetype
I'm not sure it'll work but it's worth a shot.
Tis cool your having fun and making useful things man. Obviously there are better things to code a launcher in, like VB or somin, but still well done
I'm learning C++. I like to make little things with batch every now and then for the hell of it.
-
I'm just wondering, why would people use this tool and when? I don't want to sound like I don't like it, I just can't think of when I would use it.
-
I'm just wondering, why would people use this tool and when? I don't want to sound like I don't like it, I just can't think of when I would use it.
I don't know either, I'd rather just hit an icon, I was just experimenting with batch more.
-
Nice tool, but meh.. im not going to use it
-
Sorry if it came across like I didn't get why you were doing it. It's cool your experimenting man
-
Hmmm might be handy when i wanna play SA.
I need to open
GTASACC
Pizzatrainer
Camhack
Car spawner
Fraps
but i'd rather just click one icon and all of them open rather than this thing were you open it then select which programs to load... any help?
-
Yeah that'd be easy to do.
@echo off
start "program dir" program.exe
start "program dir" program.exe
start "program dir" program.exe
start "program dir" program.exe
start "program dir" program.exe
exit