Post: My batch file base. (One of the best)
06-12-2012, 05:14 AM #1
Jacob-And-Britt
I’m too L33T
(adsbygoogle = window.adsbygoogle || []).push({}); Hey guys i have been working on a new batch program and i spent almsot 3 hours on this base its pretty cool.
functions
1:Register/sign in system
2:Change the color of the porgram.
3:chnage your user name or password.
4:Also a extra option to add what you want.

Guys its lots of fun really good to the user using it!

    
@echo off
color 0b
IF EXIST Username.uf (
IF EXIST Password.uf (
Goto Login
)) ELSE (Goto Reg)
:Reg
Title Register
Echo REGISTERATION
Echo:
set /p U=Username:
set /p P=Password:
Echo %P%>password.uf
Echo %U%>username.uf
Echo Registeration Complete!
Echo Press any key to continue
Pause>nul

:Login
cls
setlocal
set User2=
for /f "tokens=*" %%a in ('type username.uf 2^>NUL'Winky Winky do set User2=%%a
set Pass2=
for /f "tokens=*" %%a in ('type password.uf 2^>NUL'Winky Winky do set Pass2=%%a
:Loginp2
Title Log in
cls
Echo Log in
Echo:
set /p user= Username:
set /p pass= Password:
if /i %user% equ %User2% (
if /i %pass% equ %Pass2% (
goto W
)
) else (goto IC)

:IC
cls
echo The Password or Username was incorrect please try again!
Echo:
Echo PRess any key
Pause>nul
goto Login

:W
cls
goto Z



:Z
Title (INSURT TITTLE HERE)
echo Welcome To (CHANGE TEXT TO PROGRAM NAME)!
echo ------------------
echo please type in a command from the list below!
echo Main Menu
echo.
echo n:Insurt option here.
echo c:Color custimizeation.
echo u:Change username or password
echo:
set /p M=
IF %M%==n GOTO :A
IF %M%==c GOTO :B
IF %M%==u GOTO :C
pause
:A
CLS
echo Usb pro directory.
echo -----------------

echo 1:OPTION 1.
echo -----------------------------------------------
echo 2:OPTION 2.
echo -----------------------------------------------
pause

:B
CLS
Title Color custimization
echo Welcome to the color menu!
echo.
echo.
echo.
echo Color custimization
echo.
echo.
echo.
echo 1:Green
echo 2:Cyan
echo 3:Red
echo 4:Purple
echo 5:Yellow
echo 6:White
echo 7Happyark Blue
echo 8Happyark green
echo 9:Aqua
echo 10Happyark Red
echo 11Happyark purple
echo 12:Gold
echo 13Happyark white
echo 14:Home
echo:
set /p M=
IF %M%==1 color a
IF %M%==1 CLS
IF %M%==1 goto Z
IF %M%==2 color b
IF %M%==2 CLS
IF %M%==2 goto Z
IF %M%==3 color c
IF %M%==3 CLS
IF %M%==3 goto Z
IF %M%==4 color d
IF %M%==4 CLS
IF %M%==4 goto Z
IF %M%==5 color e
IF %M%==5 CLS
IF %M%==5 goto Z
IF %M%==6 color f
IF %M%==6 CLS
IF %M%==6 goto Z
IF %M%==7 color 1
IF %M%==7 CLS
IF %M%==7 goto Z
IF %M%==8 color 2
IF %M%==8 CLS
IF %M%==8 goto Z
IF %M%==9 color 3
IF %M%==9 CLS
IF %M%==9 goto Z
IF %M%==10 color 4
IF %M%==10 CLS
IF %M%==10 goto Z
IF %M%==11 color 5
IF %M%==11 CLS
IF %M%==11 goto Z
IF %M%==12 color 6
IF %M%==12 CLS
IF %M%==12 goto Z
IF %M%==13 color 7
IF %M%==13 CLS
IF %M%==13 goto Z
IF %M%==14 goto Z

:MM
CLS
:Reg
Title Change Username
Echo Change Username
Echo:
set /p U=Username:
Echo %U%>username.uf
Echo Username change complete!
pause
CLS
goto Z
Pause>nul

:C
CLS
Title Change password or username
echo Welcome to the change password or username menu.
echo.
echo.
echo Change password or username
echo.
echo.
echo p:Change Password.
echo u:Change Username
echo h:Home
echo:
set /p M=
IF %M%==P goto PASS
IF %M%==u goto MMZ
IF %M%==h goto Z

:PASS
CLS
DEL password.uf
goto PP

:PP
CLS
:Reg
Title Change Password
Echo Change Password
Echo:
set /p P=Password:
Echo %P%>password.uf
Echo Password Change Complete!
pause
CLS
goto Z
Pause>nul

:MMZ
CLS
DEL username.uf
goto MM
(adsbygoogle = window.adsbygoogle || []).push({});
06-12-2012, 05:26 AM #2
Default Avatar
x iJB x
Guest
Originally posted by Britt View Post
Hey guys i have been working on a new batch program and i spent almsot 3 hours on this base its pretty cool.
functions
1:Register/sign in system
2:Change the color of the porgram.
3:chnage your user name or password.
4:Also a extra option to add what you want.

Guys its lots of fun really good to the user using it!

    
@echo off
color 0b
IF EXIST Username.uf (
IF EXIST Password.uf (
Goto Login
)) ELSE (Goto Reg)
:Reg
Title Register
Echo REGISTERATION
Echo:
set /p U=Username:
set /p P=Password:
Echo %P%>password.uf
Echo %U%>username.uf
Echo Registeration Complete!
Echo Press any key to continue
Pause>nul

:Login
cls
setlocal
set User2=
for /f "tokens=*" %%a in ('type username.uf 2^>NUL'Winky Winky do set User2=%%a
set Pass2=
for /f "tokens=*" %%a in ('type password.uf 2^>NUL'Winky Winky do set Pass2=%%a
:Loginp2
Title Log in
cls
Echo Log in
Echo:
set /p user= Username:
set /p pass= Password:
if /i %user% equ %User2% (
if /i %pass% equ %Pass2% (
goto W
)
) else (goto IC)

:IC
cls
echo The Password or Username was incorrect please try again!
Echo:
Echo PRess any key
Pause>nul
goto Login

:W
cls
goto Z



:Z
Title (INSURT TITTLE HERE)
echo Welcome To (CHANGE TEXT TO PROGRAM NAME)!
echo ------------------
echo please type in a command from the list below!
echo Main Menu
echo.
echo n:Insurt option here.
echo c:Color custimizeation.
echo u:Change username or password
echo:
set /p M=
IF %M%==n GOTO :A
IF %M%==c GOTO :B
IF %M%==u GOTO :C
pause
:A
CLS
echo Usb pro directory.
echo -----------------

echo 1:OPTION 1.
echo -----------------------------------------------
echo 2:OPTION 2.
echo -----------------------------------------------
pause

:B
CLS
Title Color custimization
echo Welcome to the color menu!
echo.
echo.
echo.
echo Color custimization
echo.
echo.
echo.
echo 1:Green
echo 2:Cyan
echo 3:Red
echo 4:Purple
echo 5:Yellow
echo 6:White
echo 7Happyark Blue
echo 8Happyark green
echo 9:Aqua
echo 10Happyark Red
echo 11Happyark purple
echo 12:Gold
echo 13Happyark white
echo 14:Home
echo:
set /p M=
IF %M%==1 color a
IF %M%==1 CLS
IF %M%==1 goto Z
IF %M%==2 color b
IF %M%==2 CLS
IF %M%==2 goto Z
IF %M%==3 color c
IF %M%==3 CLS
IF %M%==3 goto Z
IF %M%==4 color d
IF %M%==4 CLS
IF %M%==4 goto Z
IF %M%==5 color e
IF %M%==5 CLS
IF %M%==5 goto Z
IF %M%==6 color f
IF %M%==6 CLS
IF %M%==6 goto Z
IF %M%==7 color 1
IF %M%==7 CLS
IF %M%==7 goto Z
IF %M%==8 color 2
IF %M%==8 CLS
IF %M%==8 goto Z
IF %M%==9 color 3
IF %M%==9 CLS
IF %M%==9 goto Z
IF %M%==10 color 4
IF %M%==10 CLS
IF %M%==10 goto Z
IF %M%==11 color 5
IF %M%==11 CLS
IF %M%==11 goto Z
IF %M%==12 color 6
IF %M%==12 CLS
IF %M%==12 goto Z
IF %M%==13 color 7
IF %M%==13 CLS
IF %M%==13 goto Z
IF %M%==14 goto Z

:MM
CLS
:Reg
Title Change Username
Echo Change Username
Echo:
set /p U=Username:
Echo %U%>username.uf
Echo Username change complete!
pause
CLS
goto Z
Pause>nul

:C
CLS
Title Change password or username
echo Welcome to the change password or username menu.
echo.
echo.
echo Change password or username
echo.
echo.
echo p:Change Password.
echo u:Change Username
echo h:Home
echo:
set /p M=
IF %M%==P goto PASS
IF %M%==u goto MMZ
IF %M%==h goto Z

:PASS
CLS
DEL password.uf
goto PP

:PP
CLS
:Reg
Title Change Password
Echo Change Password
Echo:
set /p P=Password:
Echo %P%>password.uf
Echo Password Change Complete!
pause
CLS
goto Z
Pause>nul

:MMZ
CLS
DEL username.uf
goto MM


Not too bad, but this is only batch.

Try looking into Visual Basic, then when you're comfortable, move into a much higher level language such as C or C++. You won't regret it! Winky Winky

The following user thanked x iJB x for this useful post:

DinoFreak
06-12-2012, 05:30 AM #3
Pichu
RIP PICHU.
Looks pretty sick. Didn't test but looked through the code and I like it.

---------- Post added at 10:30 PM ---------- Previous post was at 10:27 PM ----------

Originally posted by x
Not too bad, but this is only batch.

Try looking into Visual Basic, then when you're comfortable, move into a much higher level language such as C or C++. You won't regret it! Winky Winky


I'd recommend not starting with Visual Basic. Visual Studios C# would be better. Even though VB.NET and C# are the same, C# deals with the use of similar syntax as C++ and Java as well as other language.
06-12-2012, 05:33 AM #4
Jacob-And-Britt
I’m too L33T
Originally posted by Pichu View Post
Looks pretty sick. Didn't test but looked through the code and I like it.

---------- Post added at 10:30 PM ---------- Previous post was at 10:27 PM ----------



I'd recommend not starting with Visual Basic. Visual Studios C# would be better. Even though VB.NET and C# are the same, C# deals with the use of similar syntax as C++ and Java as well as other language.
Yeah ima try to get into stuff like that cus i learned batch codeing in 1 day lol i want to know sevrall codeing languages as i already code cod 4 patches.
06-12-2012, 05:43 AM #5
Pichu
RIP PICHU.
Originally posted by Britt View Post
Yeah ima try to get into stuff like that cus i learned batch codeing in 1 day lol i want to know sevrall codeing languages as i already code cod 4 patches.


You code or modify? By coding, one would assume that you build them from scratch where as you modify from someone else's base.
06-12-2012, 05:53 AM #6
Jacob-And-Britt
I’m too L33T
Originally posted by Pichu View Post
You code or modify? By coding, one would assume that you build them from scratch where as you modify from someone else's base.
me? i made all of this froms cratch except the sign up system.
06-12-2012, 05:59 AM #7
Pichu
RIP PICHU.
Originally posted by Britt View Post
me? i made all of this froms cratch except the sign up system.


No, I was talking about the
Originally posted by another user
cod 4 patches.
[/I][/COLOR]
06-12-2012, 06:06 AM #8
Jacob-And-Britt
I’m too L33T
Originally posted by Pichu View Post
No, I was talking about the [/I][/COLOR]
oh yeah........

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo