Author Topic: 5 Choice Launcher  (Read 2267 times)

0 Members and 1 Guest are viewing this topic.

Offline Cody

  • Veteran Member
  • Posts: 5666
  • (stormlexer)
    • View Profile
5 Choice Launcher
« 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:

Code: [Select]
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.

Code: [Select]
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:
« Last Edit: January 12, 2008, 12:03:21 PM by StormLexer »

Offline PheoniX

  • Posts: 188
    • View Profile
    • http://
5 Choice Launcher
« Reply #1 on: January 12, 2008, 12:28:24 PM »
Gonna download, see if i can learn anything

Ocean

  • Guest
5 Choice Launcher
« Reply #2 on: January 12, 2008, 12:28:53 PM »
I'm to go ahead and say what 90% of the forum is thinking.

What?

Offline Cody

  • Veteran Member
  • Posts: 5666
  • (stormlexer)
    • View Profile
5 Choice Launcher
« Reply #3 on: January 12, 2008, 01:50:20 PM »
Quote from: Ocean
I'm to go ahead and say what 90% of the forum is thinking.

What?

Quote
I did another thing in batch cause I was bored.

Offline unreal

  • Posts: 706
    • View Profile
5 Choice Launcher
« Reply #4 on: January 12, 2008, 02:21:38 PM »
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.

Offline Cody

  • Veteran Member
  • Posts: 5666
  • (stormlexer)
    • View Profile
5 Choice Launcher
« Reply #5 on: January 12, 2008, 04:15:38 PM »
I wouldn't use it myself tbh.

Offline unreal

  • Posts: 706
    • View Profile
5 Choice Launcher
« Reply #6 on: January 12, 2008, 04:23:33 PM »
Its probarbly easier to go to the program its self lol, I was just being nice  

Offline Cody

  • Veteran Member
  • Posts: 5666
  • (stormlexer)
    • View Profile
5 Choice Launcher
« Reply #7 on: January 12, 2008, 04:35:01 PM »
Quote from: unreal
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.

Offline PheoniX

  • Posts: 188
    • View Profile
    • http://
5 Choice Launcher
« Reply #8 on: January 12, 2008, 04:46:06 PM »
Ey Storm, i've got this so it loads media player up, but is there any way it could load a playlist ?

Offline Aries

  • V.I.P. Member
  • Posts: 8707
    • View Profile
5 Choice Launcher
« Reply #9 on: January 12, 2008, 04:52:41 PM »
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

Offline unreal

  • Posts: 706
    • View Profile
5 Choice Launcher
« Reply #10 on: January 12, 2008, 05:20:38 PM »
Quote from: Aries
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.

Offline Cody

  • Veteran Member
  • Posts: 5666
  • (stormlexer)
    • View Profile
5 Choice Launcher
« Reply #11 on: January 14, 2008, 08:29:40 AM »
Quote from: PheoniX
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.

Quote from: Aries
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.

Offline Tackleberry

  • Veteran Member
  • Posts: 7402
    • View Profile
5 Choice Launcher
« Reply #12 on: January 14, 2008, 09:02:47 AM »
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.

Offline Cody

  • Veteran Member
  • Posts: 5666
  • (stormlexer)
    • View Profile
5 Choice Launcher
« Reply #13 on: January 14, 2008, 10:05:06 AM »
Quote from: Tackleberry
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.

Offline GT-7

  • Posts: 3402
  • Old fart from the past
    • View Profile
5 Choice Launcher
« Reply #14 on: January 14, 2008, 10:13:56 AM »
Nice tool, but meh.. im not going to use it

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal