1. This forum is in read-only mode.

A Little Batch Program I Made

Discussion in 'General Discussion' started by AcroneSF, Aug 28, 2009.

  1. AcroneSF

    AcroneSF Well-Known Member

    hehe, i got bored so i made a little menu to clear up my desktop.

    [​IMG]

    How it works:
    Well basically you just need to put in the desired number of what you want and hit enter. Its that simple :)
     
  2. Seph

    Seph Administrator Staff Member

    Did you intend to share it or just brag? :p
     
  3. AcroneSF

    AcroneSF Well-Known Member

    Well i was planning on waiting for someone to ask me.. Oh well, ill just post the code.
     
  4. kamuikurou

    kamuikurou Well-Known Member

    Shouldn't this go to Computers and Modding section?

    Anyway, t's pretty interesting, but I don't really like DOS interface.
     
  5. AcroneSF

    AcroneSF Well-Known Member

    I wasnt sure where to put it..

    Anyway I am too tired at the moment to make to explain it. I might make up for that with a tutorial later. Although if you have used batch coding before you should feel right at home.

    Heres the source code. Edit it all you like:
    Code:
    @echo off
    title Menu
    cd
    :Main
    cls
    echo ======================
    echo   // Program Menu \\
    echo ======================
    echo.
    echo [1]  Internet Explorer
    echo [2]  Mozilla Firefox
    echo [3]  Notepad++
    echo [4]  Camtasia Studio 6
    echo [5]  Sony Vegas Pro 9
    echo [6]  Gimp 2.6
    echo [7]  Audacity
    echo [8]  Any DVD Converter Professional
    echo [9]  Microsoft Visual C++ 2008 Express Edition
    echo [10] Webcam
    echo [11] TurboCAD Professional 16
    echo [12] AVG 8.5
    echo [13] Legend - Legacy Of The Dragons
    echo [14] Plants vs Zombies
    echo [15] Exit
    echo.
    set /p op=Choose which program to open:
    if %op%==1 goto 1
    if %op%==2 goto 2
    if %op%==3 goto 3
    if %op%==4 goto 4
    if %op%==5 goto 5
    if %op%==6 goto 6
    if %op%==7 goto 7
    if %op%==8 goto 8
    if %op%==9 goto 9
    if %op%==10 goto 10
    if %op%==11 goto 11
    if %op%==12 goto 12
    if %op%==13 goto 13
    if %op%==14 goto 14
    if %op%==15 goto 15
    echo Invalid choice
    goto Main
    :1
    start iexplore.exe
    goto main
    :2
    start firefox.exe
    goto main
    :3
    cd "C:\Program Files\Notepad++"
    start notepad++.exe
    goto main
    :4
    cd "C:\Program Files\TechSmith\Camtasia Studio 6"
    start CamtasiaStudio.exe
    goto main
    :5
    cd "C:\Program Files\Sony\Vegas Pro 9.0"
    start vegas90.exe
    goto main
    :6
    cd "C:\Program Files\GIMP-2.0\bin"
    start gimp-2.6.exe
    goto main
    :7
    cd ""C:\Program Files\Audacity"
    start Audacity.exe
    goto main
    :8
    cd "C:\Program Files\Any DVD Converter Professional"
    start DVDConvPro.exe
    goto main
    :9
    cd "C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE"
    start VCExpress.exe
    goto main
    :10
    cd "C:\Program Files\Logitech\QuickCam10"
    start QuickCam10.exe
    goto main
    :11
    cd "C:\Program Files\IMSIDesign\TCWP16\Program"
    start Tcw16.exe
    goto main
    :12
    cd "C:\Program Files\AVG\AVG8"
    start avgui.exe
    goto main
    :13
    cd "C:\Program Files\ITTerritory\DragonsEn"
    start DwarClientEn.exe
    goto main
    :14
    cd "C:\Program Files\PC-home\Plants vs. Zombies"
    start PlantsVsZombies.exe
    goto main
    :15
    exit