basically i've got to make a batch file to run some menu options, sort of a utility diskette if an OS fails. i need to find a good batch file guide and having no luck. here's what i've got so far, also, in case you can't tell, I'm not good with programming. and im working it bit by bit. the little variable n you see is a variable for my name, but i couldn't figure out how to do it.
@echo off
cls
:start
echo Today's date us:
date /t
echo
echo ********************************
echo %n
echo Utility Menu
echo ********************************
echo 1. Launch Microsoft Diagnostics
echo 2. Launch DOS editor
echo 3. Show the hard drive partitions that already exist
echo 4. Repartition hard drive
echo 5. Format a partition
echo 6. Transfer system files to the hard drive
echo 7. Display c:\config.sys
echo 8. Display c:\autoexec.bat
echo E. Exit
echo ********************************
choice /a:12345678E choose a menu option
if errorlevel E goto exit
if errorlevel 8 goto autoexec
if errorlevel 7 goto config
if errorlevel 6 goto system
if errorlevel 5 goto format
if errorlevel 4 goto fdisk
if errorlevel 3 goto part
if errorlevel 2 goto DOS
if errorlevel 1 goto MSD
:autoexec
type autoexec.bat
pause > null
press any key to return to the main menu...
goto start
:config
type config.sys
pause > null
press any key to return to the main menu...
goto start
:system
a:>sys c:
pause > null
press any key to return to the main menu...
goto start
:format
:fdisk
art
:dos
edit
:msd
msd
:exit
cls
exit




art
Reply With Quote