Thread: batch files..
View Single Post
Old 07-07-06, 12:37 PM   #1 (permalink)
aximbigfan
Aximsite Hall of Fame
 
aximbigfan's Avatar
 
Join Date: May 2005
Posts: 9,197
Thanked 0 Times in 0 Posts
Blog Entries: 1
batch files..

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
aximbigfan is online now   Reply With Quote