[REQUEST] From Batch to Graphic Menu

Discussion in 'Scripting' started by Papus96, Jun 20, 2013.

  1. Papus96

    Papus96 MDL Novice

    Sep 1, 2009
    16
    0
    0
    I have this code in batch format and need to convert to graphic menu, this menu will be executed from a Pre Live PE disk. Its working just fine but love to see it with a more refine GUI. I'm clueless when it comes to programming.

    @echo off
    title Windows XP Setup

    for %%i in (C D E F G H I J K L M N O P Q R S T U V W X Y Z) do if exist %%i:\XP.cmd set USBKEY=%%i:
    echo Found USB Installation source as drive %USBKEY%

    cls
    echo.
    echo ==================================================================
    echo / INSTALLATION SOURCE [%USBKEY%] /
    echo / /
    echo / /
    echo / NOTE 1: Install Windows XP using Panther Setup!!!! /
    echo / Fully updated with all programs installed!!! /
    echo / /
    echo / NOTE 2: If more then one harddrive, choose option 1 only!!!! /
    echo / Option two will format your hardrive and loose everything!!! /
    echo / /
    echo ==================================================================
    echo / /
    echo / Options: /
    echo / /
    echo / [1] Apply Windows XP SP3 Panther Image /
    echo / [2] Install Windows XP SP3 From Iso /
    echo / [3] Restart /
    echo / [4] Power Off /
    echo / [5] Win8 Live /
    echo / /
    echo ==================================================================
    echo.
    set /P slct= Your Answer:
    if "%slct%"=="1" goto :eek:emxp
    if "%slct%"=="2" goto :vlxp
    if "%slct%"=="3" goto :restart
    if "%slct%"=="4" goto :eek:ff
    if "%slct%"=="5" goto :exit

    :vlxp

    echo.
    %USBKEY%\mysetup.cmd

    exit


    :eek:emxp

    echo.
    %USBKEY%\sources\setup.exe

    exit

    :restart

    echo.
    wpeutil reboot

    exit

    :eek:ff

    echo.
    wpeutil shutdown

    exit

    :exit

    echo.

    exit


    Thanks for any help.

    Papus!!