Ghost Solution Suite

 View Only
  • 1.  Creating DOS Menu for Ghost

    Posted Nov 07, 2007 12:07 PM
    Hi, I'm trying to create a DOS menu to make things easier for creating and restoring computer images from a server... I'm using a modified version of the program from http://www.netbootdisk.com/ and need to change this logon batch file:
     
     
    @echo off
    echo SAMPLE LOGON SCRIPT
    echo.
    echo *** You'll have to modify this script to suit your network. ***
    if not %NTFS%==1 goto N
    SHOWMENU Loading Read-Only NTFS Support...
    REM *** NTFSDOS - EDIT BELOW TO SUIT YOUR LAN, ETC ***
    net use x: \\server\share
    x:\ntfsdos
    REM *** NTFSDOS - EDIT END
    :N
    REM --- EXAMPLE --- Automatically run Ghost from a network share ---
    NET USE G: \\server location\
    G:
    ghost.exe -rb
    REM
    REM Note: the -rb = reboot when done :)
     
     
    So ideally I'd first like 2 options, 1 to create an image of the pc and ghost it to the server and 2 to restore one to that pc from the server, then after chosing 1 or 2 it would come up with more options of the specific type of pc, I believe the code to create an image is something like the following: GHOST -clone,mode=create,src=1,dst=\\server location\dc7700.gho
     
    Any help would be appriciated and if you need anymore information ask away.
     
    Cheers, Danny


  • 2.  RE: Creating DOS Menu for Ghost

    Posted Nov 20, 2007 01:43 AM
    Hi,

    The easiest way is to use the command 'Choice'. This will set the errorlevel variable based on the user input. For example,

    Choice /C:CR "Image (C)reaate or (R)estore"
    would display

    Image (C)reate or (R)estore [C,R]?


    and set ERRORLEVEL to 1 or 2 based on input.

    If you would like to be little more sophisticated, you can use DOS menu system. Please refer to the MS documentation in

    http://www.microsoft.com/technet/archive/msdos/03_confg.mspx?mfr=true

    For an example.

    Giving a menu for images would be a challenge if you use DOS alone. You may try using 4DOS from www.jpsoft.com, which was made available for free couple of years back. 4DOS supports selecting files from a list.

    Krish