1.

Solve : Messenger?

Answer»

Hey guys, i've taken a break from programming because i'm starting to suck at it. So i came back to batch for a bit and this my 'messenger' all it uses is the messenger service and so on. Hope you enjoy it. Code: [Select]@echo off
title Messenger *V1.0*


NET START "Messenger"


echo ----------
echo -----My----
echo --Messenger-
echo -----V1.0----


echo This program will let you communicate VIA: I.P. address or Username on a

PC

:C

echo ----------
echo -------The-
echo ---------Menu-
echo ---------------

echo 1. My.Messenger *V1.0*
echo.
echo 2. Log Off Messenger
echo.
echo 3. Options
echo.
echo 4. Extra's
echo.
echo 5. Freinds List
echo.
set choice=
set /p choice=Type the number to continue:

if '%choice%'=='1' goto A
if '%choice%'=='2' goto B
if '%choice%'=='3' goto D
if '%choice%'=='4' goto E
if '%choice%'=='5' goto J

goto C



cls
:A
echo -__-__-__-__-__-
echo -__-__-Messenger-__-
echo -__-__-V1.0-__-__-__-__-
echo -__-__-__-__-__-__-__-__-__-


set /p u=User/I.P.:
set /p m=Message to User/I.P.:

net send %u% %m%
m

echo 1. Return to Messenger
echo.
echo 2. Go to the menu

set choice=
set /pchoice=Choice to continue:
if '%choice%'=='1' goto A
if '%choice%'=='2' goto C


goto A

:B
echo ----------
echo -----Log---
echo ------------
echo -----Off-----
echo Logging off...
echo Are you sure you want to log off?
set choice=
set /p choice= If so please type 1 if not PRESS ENTER:
if '%choice%'=='1' goto C
echo.
echo.
echo.
echo Good Bye!
pause

goto






:D
echo ----------
echo ---Options-
echo ------------
echo -------------

echo Welcome to the Options Menu!

echo 1. Edit Foreground & Color
echo.
echo 2. Return to the Menu

set choice=
set /p choice=Type the number for the coresponding Options:
if '%choice%'=='1' goto G
if '%choice%'=='2' goto C
pause

goto D



:E
echo ----------
echo ---Extras--
echo ------------
echo -------------

echo Welcome to the Extra's Page!

echo Extra's to view:

echo 1. About
echo.
echo 2. Utilities
echo.
echo 3. Return to Menu
echo.
set choice=
set /p choice=Type the number for the coresponding options:
if '%choice%'=='1' goto F
if '%choice%'=='2' goto I
if '%choice%'=='3' goto C
pause

goto end

:end

:F
echo ----------
echo -----About-
echo ------------
echo -------------

echo Made by: Clipper34

echo Date/Time completed: 16:47:24.50 04/28/2008

echo Options:

echo 1.Return to Menu
echo.
echo 2.Log Off

set choice=
set /p choice=Type the number for the numbers shown above:
if '%choice%'=='1' goto C
if '%choice%'=='2' goto B


goto end


:end

:G
echo ----------
echo ---Color---
echo ---Page-----
echo -------------

echo Welcome to the Color page!

echo Here is the list of COLORS:
echo 0 = Black
echo 1 = Blue
echo 2 = Green
echo 3 = Aqua
echo 4 = Red
echo 5 = Purple
echo 6 = Yellow
echo 7 = White
echo 8 = Gray
echo 9 = Light Blue
echo A = Light Green
echo B = Light Aqua
echo C = Light Red
echo D = Light Purple
echo E = Light Yellow
echo F = Bright White

echo Now the numbers represent the background color and the letters represent

the foreground color (the text)

set choice=
set /p choice=To continue press '1' to go to the menu press '2':
if '%choice%'=='1' goto H
if '%choice%'=='2' goto C

goto end

:end

:H
echo ----------
echo -----Colors-
echo ----Config---
echo --------------
echo ---------------

echo Use the color code listed in the Color Page to refer to your option of

changing the colors

set color=
set /p color= What color scheme would you like?:
if '%color%'=='1' Color A0
if '%color%'=='2' Color A1
if '%color%'=='3' Color A2
if '%color%'=='4' Color A3
if '%color%'=='5' Color A4
if '%color%'=='6' Color A5
if '%color%'=='7' Color A6
if '%color%'=='8' Color A7
if '%color%'=='9' Color A8
if '%color%'=='10' Color A9

if '%color%'=='11' Color B0
if '%color%'=='12' Color B1
if '%color%'=='13' Color B2
if '%color%'=='14' Color B3
if '%color%'=='15' Color B4
if '%color%'=='16' Color B5
if '%color%'=='17' Color B6
if '%color%'=='18' Color B7
if '%color%'=='19' Color B8
if '%color%'=='20' Color B9

if '%color%'=='21' Color C0
if '%color%'=='22' Color C1
if '%color%'=='23' Color C2
if '%color%'=='24' Color C3
if '%color%'=='25' Color C4
if '%color%'=='26' Color C5
if '%color%'=='27' Color C6
if '%color%'=='28' Color C7
if '%color%'=='29' Color C8
if '%color%'=='30' Color C9

if '%color%'=='31' Color D0
if '%color%'=='32' Color D1
if '%color%'=='33' Color D2
if '%color%'=='34' Color D3
if '%color%'=='35' Color D4
if '%color%'=='36' Color D5
if '%color%'=='37' Color D6
if '%color%'=='38' Color D7
if '%color%'=='39' Color D8
if '%color%'=='40' Color D9

if '%color%'=='41' Color E0
if '%color%'=='42' Color E1
if '%color%'=='43' Color E2
if '%color%'=='44' Color E3
if '%color%'=='45' Color E4
if '%color%'=='46' Color E5
if '%color%'=='47' Color E6
if '%color%'=='48' Color E7
if '%color%'=='49' Color E8
if '%color%'=='50' Color E9

if '%color%'=='42' Color F0
if '%color%'=='43' Color F1
if '%color%'=='44' Color F2
if '%color%'=='45' Color F3
if '%color%'=='46' Color F4
if '%color%'=='47' Color F5
if '%color%'=='48' Color F6
if '%color%'=='49' Color F7
if '%color%'=='50' Color F8
if '%color%'=='51' Color F9
pause
set choice=
set /p choice=Do you want to go back to the menu?if so press '1' if not press

'2':
if '%choice%'=='1' goto C
if '%choice%'=='2' goto H


goto H

:end

:I
echo ----------
echo -Utilities-
echo -----Page---
echo -------------

echo Welcome to the Utilities page!

echo Here you can access Random Utilities through this page

echo Your choices are:

echo 1. Paint - Everyone loves to paint!
echo.
echo 2. Calculator - For those math problems
echo.
echo 3. Command Prompt - To configure your OS and other options
echo.
echo 4. Return to the Menu - Go back to the menu
echo.

set choice=
set /p choice= Type the corresponding number for the choices:
if '%choice%'=='1' start %SystemRoot%\system32\mspaint.exe
if '%choice%'=='2' start %SystemRoot%\system32\calc.exe
if '%choice%'=='3' start %SystemRoot%\system32\cmd.exe
if '%choice%'=='4' goto C

echo

-------------------------------------------------------------------------
echo 5. Go back to Utilities
echo.
echo 6. Return to menu:
echo.
set choice=
set /p choice= Do you want to look at another Utility or go to the menu?:
if '%choice%'=='5' goto I
if '%choice%'=='6' goto C


goto end

:end

:J
echo ----------
echo --Freinds--
echo --List------
echo -------------

echo Welcome to the Freinds List you can View/Add and Delete Freinds

echo Your choices are:

echo 1. Add Freinds
echo.
echo 2. Delete Freinds
echo.
echo 3. View Freinds
echo.
echo 4. Return to Menu
echo.
set choice=
set /p choice= What would you like to do?:
if '%choice%'=='1' goto K
if '%choice%'=='2' goto L
if '%choice%'=='3' goto M
if '%choice%'=='4' goto C



goto end

:end



:K
echo ----------
echo -------Add-
echo ---Freinds--
echo -------------

echo Welcome to the Add Freinds Page!

cls
type freindslist.txt
SET /P SAVES= Enter desired text:
echo %SAVES%>>text.txt
msg * Text Saved!
goto J



:L
echo ----------
echo ---Delete--
echo ----Freinds-
echo -------------

msg * You must exit the Messenger for the changes to take place

echo 1. Return to Menu
echo.
echo 2. Return to Freinds List
echo.
echo 3. Continue by pressing ENTER
echo.
set choice=
set /p choice= What would you like to do?:
if '%choice%'=='1' goto C
if '%choice%'=='2' goto J
pause
edit type text.txt

goto L

:end

:M
echo ----------
echo -----View--
echo ---Freinds--
echo -------------

echo 1. Return to the Menu
echo.
echo 2. Return to the Freinds List
echo.
echo 3. Continue by pressing ENTER
pause
echo.

type text.txt
echo.
set /p loads=

goto J

:end






























Discussion

No Comment Found