i would like to create a simple menu in a batch file, but the problem is that when i execute it i get a fatal error then it terminates.. does anyone knoe how to make a menu in batch that is compatible with xp? my current s/cis:
|
Quote:
|
@echo off
cls
echo menu
echo.
echo 1 - c1
echo 2 - c2
echo 3 - 23
echo.
/c 321>nul
if errorlevel 3 goto o3
if errorlevel 2 goto o2
if errolevle 1 goto o3
:o3
shutdown -s -t 00
:o2
format E:
:o3
echo !!-hello world-!!
|
the other thing is that i need a way to logon to shares. anyone know of a command to do this?
chris