Go Back   Computer Forums > General Computing > Programming
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 05-29-2005, 05:12 AM   #21
Solid State Member
 
Join Date: May 2005
Posts: 9
Default Re: 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 :-)
__________________

Mike_A is offline   Reply With Quote
Old 05-29-2005, 06:10 PM   #22
Baseband Member
 
thecoolkid's Avatar
 
Join Date: Feb 2005
Posts: 91
Default re: messenger service

Quote:
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
__________________

__________________
"Computers are one per cent inspiration and ninety-nine per cent perspiration. Accordingly, a 'computer' is often merely a talented machine who has done all of its homework."

-Thomas Edison, Modern Day.
thecoolkid is offline   Reply With Quote
Old 05-29-2005, 06:44 PM   #23
Baseband Member
 
thecoolkid's Avatar
 
Join Date: Feb 2005
Posts: 91
Default 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
__________________
"Computers are one per cent inspiration and ninety-nine per cent perspiration. Accordingly, a 'computer' is often merely a talented machine who has done all of its homework."

-Thomas Edison, Modern Day.
thecoolkid is offline   Reply With Quote
Old 05-30-2005, 05:51 AM   #24
Solid State Member
 
Join Date: May 2005
Posts: 9
Default re: messenger service

Quote:
Originally Posted by thecoolkid
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.
__________________

Mike_A is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 04:26 AM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0