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?
"Always vote for principle, though you may vote alone, and you may cherish the sweetest reflection that your vote is never lost." -- John Quincy Adams
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. and To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. and To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. and To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
you can also look into WSH... not as easy as kixtart (my favorite), but it is built in
__________________
Quote:
"Always vote for principle, though you may vote alone, and you may cherish the sweetest reflection that your vote is never lost." -- John Quincy Adams
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. and To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. and To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. and To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
that was the first artical i went to to figure otu the menu. i coded it and windows printed an error. so i tryed d/l the batch he posted and windows printed another error. logon to shares: i have an nslu2 and in order to gain access to it i have to double click on its icon in my computer then enter me\y username/password then i have to exit out of the window and start wmp then clicko on my remote playlist. i would liek kto automat this prosses by doign somehing like:
Quote:
@echo off
<**line to login to share here**>
<**path to playlist here (on local hdd)**>
:exit
that way i can put the bat file in my /startmenu/startup folder nad have my share loged into and wmp started when i power up..
chris
net use X: \\server\share /user:<username> password
net use X: \\servername\sharename /user:aximbigfan spellingbeechamp
x:\music\myplaylist.wpl
__________________
Quote:
"Always vote for principle, though you may vote alone, and you may cherish the sweetest reflection that your vote is never lost." -- John Quincy Adams
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. and To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. and To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. and To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
"Always vote for principle, though you may vote alone, and you may cherish the sweetest reflection that your vote is never lost." -- John Quincy Adams
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. and To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. and To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. and To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.