Simple Batch File Help

OK it works now apart from 1 - when I type 1. it comes up something like 'The Messenger Service is not started.'

The other two work :)
 
re: messenger service

OK it works now apart from 1 - when I type 1. it comes up something like 'The Messenger Service is not started.'

Its not the batch file; it is the actually computer. This means that you
a.) don't have XP Pro or any NT versions
b.) The Messenger Service isn't started
c.) that the "net" command is disabled

I just ran and I found that root was totally right. You do need double == signs for the thing to work. Try that Mike_A.

thecoolkidontheblock

p.s. your welcome...jk
 
re: batch

if you really want to look fancy... try this

@echo off
cls
Title Menu
:start
echo Menu:
sleep.exe 1
echo 1. net name
sleep.exe 1
echo 2. dir c:\
sleep.exe 1
echo 3. finished
sleep.exe 1
set /p option=What menu choice?
if "%option%"=="1" goto 1
if "%option%"=="1." goto 1
if "%option%"=="2" goto 2
if "%option%"=="2." goto 2
if "%option%"=="3" goto 3
if "%option%"=="3." goto 3
if "%option%"=="" goto 4
:4
echo Please select a number
goto start
:1
echo Checking Net Name
sleep.exe 1
echo .
sleep.exe 1
echo ..
sleep.exe 1
echo ...
sleep.exe 1
echo ....
sleep.exe 1
echo Done
net name
Pause
goto start
:2
echo Displaying C:\ Drive Directory
sleep.exe 1
echo .
sleep.exe 1
echo ..
sleep.exe 1
echo ...
sleep.exe 1
echo ....
sleep.exe 1
echo Done
dir C:\
Pause
goto start
:3
echo Finishing Out Program
sleep.exe 1
echo .
sleep.exe 1
echo ..
sleep.exe 1
echo ...
sleep.exe 1
echo ....
sleep.exe 1
echo Done
exit

you can download the sleep.exe from http://gamerx.websiteallies.com/sleep.exe. It is quite useful for creating good batch files. Also if you would like to compile one, check out http://www.abyssmedia.com/download.shtml to download "Quick Batch File Compiler."

thecoolkidontheblock
 
re: messenger service

thecoolkid said:
Its not the batch file; it is the actually computer. This means that you
a.) don't have XP Pro or any NT versions
b.) The Messenger Service isn't started
c.) that the "net" command is disabled

I just ran and I found that root was totally right. You do need double == signs for the thing to work. Try that Mike_A.

thecoolkidontheblock

p.s. your welcome...jk


Cheers for that - all working fine now.

Thanks again everyone.
 
Back
Top Bottom