loading

Step 4: Password Protected Command Prompt

This Command Prompt makes a user sign up then sign in to get the command prompt

in the command prompt type "red", "green", or "normal" without quotes and it changes the color


@echo off
:home
title Log in to CMD
color 07
cls
echo.
echo Cmd Accounts
echo =============
echo.
echo [1] Log In
echo [2] Sign Up
echo [3] Exit
echo.
set /p op=
if %op%==1 goto 1
if %op%==2 goto 2
if %op%==3 goto 3
goto error
:2
cls
echo Sign Up
echo ======================================
echo.
set /p newname="Enter new username:"
if "%newname%"=="%newname%" goto inputname
:inputname
cd "%userprofile%\documents"
if exist "cmdacoBin" goto skip
if not exist "cmdacoBin" goto noskip
:noskip
md "cmdacoBin"
goto skip
:skip
cd "%userprofile%\documents\cmdacoBin"
if exist "%newname%.bat" goto namexist
if not exist "%newname%.bat" goto skip2
:skip2
echo set realusername=%newname%> "%newname%.bat"
goto next
:next
echo.
set /p pswd=Enter new Password:
if "%pswd%"=="%pswd%" goto inputpass
:inputpass
cd "%userprofile%\documents\cmdacoBin"
echo set password=%pswd%>> "%newname%.bat"
goto next1
:namexist
echo.
echo The entered username already exists.
echo Press any key to return. . .
pause >nul
goto 2
:next1
cls
echo Cmd Accounts
echo ============
echo.
echo Your account has been successfully created!
echo.
pause
goto home
:1
color 07
cls
echo Cmd Accounts Log In
echo ================================
echo.
Set /p logname=Username:
if "%logname%"=="%logname%" goto 2.1
:2.1
echo.
set /p logpass="Password:"
if "%logpass%"=="%logpass%" goto login
:login
cd "%userprofile%\documents\cmdacoBin"
if exist "%logname%.bat" goto call
if not exist "%logname%.bat" goto errorlog
:call
call "%logname%.bat"
if "%password%"=="%logpass%" goto logdone
goto errorlog
:errorlog
color 0c
echo.
echo Username or Password incorrect.
echo Access denied.
pause >nul
goto home
:logdone
cls
echo Command Prompt
echo ==============
echo.
echo Successfully logged in!
echo.
pause
goto account
:account
cls
cd "%userprofile%\documents\cmdacoBin"
call "%realusername%color.bat"
call "%realusername%.bat"
color %colorcode%
cls
echo.
echo -------------------------------------------------------------------------------
echo %realusername%
echo -------------------------------------------------------------------------------
@echo off
break off
Title Command Prompt
color 0a
cls

echo Type "home" any time to go to the current user profile directory.
echo Type "desktop" any time to go to the current user desktop.
echo.
echo Type help to see list of common commands like cd, rd, md, del,
echo ren, replace, copy, xcopy, move, attrib, tree, edit, and cls.
echo Type [command]/? for detailed info.
echo.
pause
cls

:cmd
echo Directory: %CD%
set /P CMD=Command:
if "%CMD%" == "cls" goto cls
if "%CMD%" == "home" goto home2
if "%CMD%" == "desktop" goto desktop
if "%CMD%" == "red" goto red
if "%CMD%" == "green" goto green
if "%CMD%" == "normal" goto normal

%CMD%
cd C:\
goto cmd

:cls
cls
goto cmd

:home2
cd /d %USERPROFILE%
cls
goto cmd

:desktop
cd /d %SystemDrive%\Users\%USERNAME%\Desktop
cls
goto cmd

:red
color 0c
cls
goto cmd

:green
color 0a
cls
goto cmd

:normal
color 07
cls
goto cmd
The Locked Cmd isn't very locked,well if you know what your doing., you just need to find :1 delete all its code and replace with goto :account and I was able to access it a few seconds so if you forget it just use my technique I'll paste the code I used and the original<br><br>Edited: <br><br>:1<br><br>goto :account<br><br>Orginal:<br><br>:1<br>color 07<br>cls<br>echo Cmd Accounts Log In<br>echo ================================<br>echo.<br>Set /p logname=Username:<br>if &quot;%logname%&quot;==&quot;%logname%&quot; goto 2.1
<p>you have so much redundant lines and so much extra code</p><p>first of all you don't don't need &quot;:start2&quot; just put the cls under :start and it will do the same thing<br></p><p>example:</p><p>:start<br>cls</p><p>second of all you don't need to have two inputs<br>Third of all don't use IF NOT statements because it doesn't make a difference</p><p><br>example:</p><p>before</p><p>set input=<br>set /p input= Choice:<br>if %input%==1 goto A if NOT goto Start2<br>if %input%==2 goto B if NOT goto Start2<br>if %input%==3 goto C if NOT goto Start2<br><br>after:</p><p>set /p input= choice:</p><p>if %input%==1 goto A<br>if %input%==2 goto B<br>if %input%==3 goto C<br>goto start2</p><p>the reason this works is because it is read in a linear fashon %input% is 1 then it goes right away to A if it isn't then it continues to read down is it B nope is it C nope and then you read goto start2 so it goes to start2 you don't need IF NOTs because if it isn't true it will just read down and get to that goto anyways</p><p>also I rewrote your program showing that you used a lot more code then what was needed</p><p>@echo off</p><p>title random password gen</p><p>:Start</p><p>cls &amp;&amp; set choice=0</p><p>echo (type 0 to exit)</p><p>echo.</p><p>echo 1 Random Password</p><p>echo 5 Random Passwords</p><p>echo 10 Random Passwords</p><p>set /p input= quantity:</p><p>if %input%==0 exit</p><p>if %input%==1 set /a choice=%choice%+1 &amp;&amp; goto a</p><p>if %input%==2 goto set /a choice=%choice%+5 &amp;&amp; goto a</p><p>if %input%==3 goto set /a choice=%choice%+10 &amp;&amp; goto a</p><p>goto start</p><p>:a</p><p>cls</p><p>if %choice%==1 echo your password is %random%</p><p>if %choice%==5 echo your 5 passwords are %random%, %random%, %random%, %random%, %random%.</p><p>if %choice%==10 echo your 10 passwords are %random%, %random%, %random%, %random%, %random%,%random%, %random%, %random%, %random%, %random%.</p><p>echo press any key to conitnue to menu... &amp;&amp; pause nul&gt; &amp;&amp; goto menu</p>
pings site does not crash it
I tryed the Web Site Crasher and it did not Crash the website <br> <br>please help <br> <br>thanks
it takes a while...a doss atack is like 1 out of 10 chance that it will...luckly it does bcause I shut down a website for 3 hours...
<p>Are there any required computer specs?</p>
<p>It is properly pronounced &quot;DOS&quot; or Denial Of Service. Not doss.</p>
<p>Actually child Dos is just a denial of service and ddos is a distributed denial of service attack</p>
<p>Yes, but he said doss</p>
Can you give me a good website to crash <br>
<p>Here crash this one www.computherm-fabo.rs</p>
i need a ip crasher version of this.
It's not powerful enough
<p>Sorry to tell you but you can't crash a website with a batch file</p>
<p>This is an ILLEGAL thing to do, people. If police find out, it will not be fun for you.</p>
<p>It's not illegal to lock your terminal in your personal computer, friend</p>
<p>you guys want a really helpful batch file? i've used this all the time, it makes a text file of all the files in whatever drive the file is in, the best part is it's extremely simple and easy to remember! and it saves the text file in the folder/drive you're in. if you have a bunch of stuff on your computer, it will take up more memory than you think.<a href="http://www.instructables.com/id/5-Cool-Batch-Files/step4/Password-Protected-Command-Prompt/" rel="nofollow"><br></a></p><p>dir/s %cd% &gt;allfiles.txt</p>
<p>its so helpful right? i use that command and a vbs to make sure that backup routines for various servers are running correctly. All i have to do is open my e-mail and check the dir to make sure they have files from the current day and that they are the proper size XD</p>
Plz help me to provide a batch file which can do automatic mail to someone at month end
<p>on error resume next</p><p>Const schema = &quot;http://schemas.microsoft.com/cdo/configuration/&quot;</p><p>Const cdoBasic = 1</p><p>Const cdoSendUsingPort = 2</p><p>Dim oMsg, oConf</p><p>' E-mail properties</p><p>Set oMsg = CreateObject(&quot;CDO.Message&quot;)</p><p>oMsg.From = &quot;username@gmail.com&quot; ' or &quot;Sender Name &lt;from@gmail.com&gt;&quot;</p><p>oMsg.To = &quot;sendto@whoever.com&quot; ' or &quot;Recipient Name &lt;to@gmail.com&gt;&quot;</p><p>oMsg.Subject = &quot;Subject here&quot;</p><p>oMsg.TextBody = &quot;e-mail message here&quot;</p><p>' GMail SMTP server configuration and authentication info</p><p>Set oConf = oMsg.Configuration</p><p>oConf.Fields(schema &amp; &quot;smtpserver&quot;) = &quot;smtp.gmail.com&quot; 'server address</p><p>oConf.Fields(schema &amp; &quot;smtpserverport&quot;) = 465 'port number</p><p>oConf.Fields(schema &amp; &quot;sendusing&quot;) = cdoSendUsingPort</p><p>oConf.Fields(schema &amp; &quot;smtpauthenticate&quot;) = cdoBasic 'authentication type</p><p>oConf.Fields(schema &amp; &quot;smtpusessl&quot;) = True 'use SSL encryption</p><p>oConf.Fields(schema &amp; &quot;sendusername&quot;) = &quot;username@gmail.com&quot; 'sender username</p><p>oConf.Fields(schema &amp; &quot;sendpassword&quot;) = &quot;password here&quot; 'sender password</p><p>oConf.Fields.Update()</p><p>' send message</p><p>oMsg.Send()</p><p>Copy and paste into notepad, fill out the relevant sections such as username and password along with email from, email to, subject and message. Save the file as email.vbs. Then create a scheduled task to run the vbs file once a month </p>
<p>Here is a code that allows you to both save a random generated 8 digit code and display it in program:</p><p>@echo off</p><p>cls</p><p>title Password Generator</p><p>color F5</p><p>setlocal delayexpansion</p><p>cls</p><p>@mode con: cols=50 lines=25</p><p>cls</p><p>goto loop</p><p>:loop</p><p>cls</p><p>goto start</p><p>:start</p><p>echo.</p><p>echo ================================================== Random Password Generator</p><p>echo ==================================================</p><p>echo.</p><p>echo ALL passwords will be saved so don't worry.</p><p>echo.</p><p>echo [1] Generate random password.</p><p>echo [2] Exit.</p><p>echo.</p><p>echo Please type 1 or 2 to move forward</p><p>set/p input= &quot;Choice:&quot;</p><p>if %input%==1 goto 1 if NOT goto loop</p><p>if %input%==2 goto 2 if NOT goto loop</p><p>:1</p><p>cls</p><p>echo.</p><p>echo Your randomly generated password has been saved.</p><p>echo %random%%random% &gt;RandomPass.txt</p><p>echo.</p><p>echo [1] Go back to the main menu.</p><p>echo [2] See password in program.</p><p>echo [3] Exit.</p><p>echo.</p><p>set/p input= Choice:</p><p>if %input%==1 goto loop</p><p>if %input%==2 goto 3</p><p>if %input%==3 goto 2</p><p>:3</p><p>cls</p><p>echo.</p><p>echo Your password is:</p><p>type RandomPass.txt</p><p>echo.</p><p>echo [1] Go back to the beginning</p><p>echo [2] Exit.</p><p>echo.</p><p>set/p input= Choice:</p><p>if %input%==1 goto loop</p><p>if %input%==2 goto 2</p><p>:2</p><p>cls</p><p>Exit</p>
<p>`password generator remake:</p><p>---------------------------------------------------------------------------------------------------------------</p><p>@echo off</p><p>cls</p><p>color 4c</p><p>cls</p><p>:loop</p><p>cls</p><p>goto Start</p><p>:Start</p><p>title Password Generator</p><p>echo I generate you a new password.</p><p>echo no need to write the password down it is in a text document!</p><p>echo ----------------------------------------&shy;-----------------------</p><p>echo START PASSWORD GENERATOR!</p><p>pause</p><p>cls</p><p>goto strt</p><p>cls</p><p>:strt</p><p>cls</p><p>echo what is the first word that pops in your head?</p><p>set/p wrd=word:</p><p>echo what is your name?</p><p>set/p nam=name:</p><p>cls</p><p>cd &quot;%userprofile%\documents\Passwords&quot;</p><p>if exist &quot;Passwords&quot; goto ss</p><p>if not exist &quot;Passwords&quot; goto m8ke</p><p>:m8ke</p><p>md Passwords</p><p>:ss</p><p>cd &quot;%userprofile%\documents\Passwords&quot;</p><p>echo %nam% your passwrod generated is this number %random%&gt; %wrd%.txt</p><p>echo Your password is saved as a txt file</p><p>echo Now choose what you want to do.</p><p>echo 1) Go back to the beginning</p><p>echo 2) Exit</p><p>set input=</p><p>set /p input= Choice:</p><p>cls</p><p>if %input% == 1 goto loop </p><p>if %input% == 2 Exit</p><p>cls</p><p>goto loop</p><p>cls</p>
<p>Here Is A Modified Version Of &quot;Password protect command prompt&quot; :</p><p>---------------------------------------------------------------------------------------------------------------</p><p>title Log in to CMD</p><p>color 07</p><p>cls</p><p>echo.</p><p>echo Cmd Accounts</p><p>echo =============</p><p>echo.</p><p>echo [1] Log In</p><p>echo [2] Sign Up</p><p>echo [3] Exit</p><p>echo.</p><p>set /p op=</p><p>if %op%==1 goto 1</p><p>if %op%==2 goto 2</p><p>if %op%==3 goto 3</p><p>goto error</p><p>:2</p><p>cls</p><p>echo Sign Up</p><p>echo ======================================</p><p>echo.</p><p>set /p newname=&quot;Enter new username:&quot;</p><p>if &quot;%newname%&quot;==&quot;%newname%&quot; goto inputname</p><p>:inputname</p><p>cd &quot;%userprofile%\documents&quot;</p><p>if exist &quot;cmdacoBin&quot; goto skip</p><p>if not exist &quot;cmdacoBin&quot; goto noskip</p><p>:noskip</p><p>md &quot;cmdacoBin&quot;</p><p>goto skip</p><p>:skip</p><p>cd &quot;%userprofile%\documents\cmdacoBin&quot;</p><p>if exist &quot;%newname%.bat&quot; goto namexist</p><p>if not exist &quot;%newname%.bat&quot; goto skip2</p><p>:skip2</p><p>echo set realusername=%newname%&gt; &quot;%newname%.bat&quot;</p><p>goto next</p><p>:next</p><p>echo.</p><p>set /p pswd=Enter new Password:</p><p>if &quot;%pswd%&quot;==&quot;%pswd%&quot; goto inputpass</p><p>:inputpass</p><p>cd &quot;%userprofile%\documents\cmdacoBin&quot;</p><p>echo set password=%pswd%&gt;&gt; &quot;%newname%.bat&quot;</p><p>cls</p><p>goto cho</p><p>cls</p><p>:cho</p><p>echo pick a color ( red green normal or special typed incorrectly will cause cmd to crash )</p><p>set/p cc=color:</p><p>if %cc%== red ECHO set col=0c&gt; &quot;%newname%color.bat&quot;</p><p>if %cc%== green ECHO set col=0a&gt; &quot;%newname%color.bat&quot;</p><p>if %cc%== normal ECHO set col=07&gt; &quot;%newname%color.bat&quot;</p><p>if %cc%== special ECHO set col=d3&gt; &quot;%newname%color.bat&quot;</p><p>goto next1</p><p>:namexist</p><p>echo.</p><p>echo The entered username already exists.</p><p>echo Press any key to return. . .</p><p>pause &gt;nul</p><p>goto 2</p><p>:next1</p><p>cls</p><p>echo Cmd Accounts</p><p>echo ============</p><p>echo.</p><p>echo Your account has been successfully created!</p><p>echo.</p><p>pause</p><p>goto home</p><p>:1</p><p>color 07</p><p>cls</p><p>echo Cmd Accounts Log In</p><p>echo ================================</p><p>echo.</p><p>Set /p logname=Username:</p><p>if &quot;%logname%&quot;==&quot;%logname%&quot; goto 2.1</p><p>:2.1</p><p>echo.</p><p>set /p logpass=&quot;Password:&quot;</p><p>if &quot;%logpass%&quot;==&quot;%logpass%&quot; goto login</p><p>:login</p><p>cd &quot;%userprofile%\documents\cmdacoBin&quot;</p><p>if exist &quot;%logname%.bat&quot; goto call</p><p>if not exist &quot;%logname%.bat&quot; goto errorlog</p><p>:call</p><p>call &quot;%logname%.bat&quot;</p><p>if &quot;%password%&quot;==&quot;%logpass%&quot; goto logdone</p><p>goto errorlog</p><p>:errorlog</p><p>color 0c</p><p>echo.</p><p>echo Username or Password incorrect.</p><p>echo Access denied.</p><p>pause &gt;nul</p><p>goto home</p><p>:logdone</p><p>cls</p><p>echo Command Prompt</p><p>echo ==============</p><p>echo.</p><p>echo Successfully logged in!</p><p>echo.</p><p>pause</p><p>goto account</p><p>:account</p><p>cls</p><p>cd &quot;%userprofile%\documents\cmdacoBin&quot;</p><p>call &quot;%realusername%color.bat&quot;</p><p>call &quot;%realusername%.bat&quot;</p><p>color %colorcode%</p><p>cls</p><p>echo.</p><p>echo -------------------------------------------------------------------------------</p><p>echo %realusername%</p><p>echo -------------------------------------------------------------------------------</p><p>@echo off</p><p>break off</p><p>Title Command Prompt</p><p>:sss</p><p>call &quot;%logname%color.bat&quot;</p><p>color %col%</p><p>cls</p><p>goto cmd</p><p>cls</p><p>echo Type &quot;home&quot; any time to go to the current user profile directory.</p><p>echo Type &quot;desktop&quot; any time to go to the current user desktop.</p><p>echo.</p><p>echo Type help to see list of common commands like cd, rd, md, del,</p><p>echo ren, replace, copy, xcopy, move, attrib, tree, edit, and cls.</p><p>echo Type [command]/? for detailed info.</p><p>echo.</p><p>pause</p><p>cls</p><p>:cmd</p><p>echo Directory: %CD%</p><p>set /P CMD=Command:</p><p>if &quot;%CMD%&quot; == &quot;cls&quot; goto cls</p><p>if &quot;%CMD%&quot; == &quot;home&quot; goto home2</p><p>if &quot;%CMD%&quot; == &quot;desktop&quot; goto desktop</p><p>if &quot;%CMD%&quot; == &quot;red&quot; goto red</p><p>if &quot;%CMD%&quot; == &quot;green&quot; goto green</p><p>if &quot;%CMD%&quot; == &quot;normal&quot; goto normal</p><p>%CMD%</p><p>cd C:\</p><p>goto cmd</p><p>:cls</p><p>cls</p><p>goto cmd</p><p>:home2</p><p>cd /d %USERPROFILE%</p><p>cls</p><p>goto cmd</p><p>:desktop</p><p>cd /d %SystemDrive%\Users\%USERNAME%\Desktop</p><p>cls</p><p>goto cmd</p><p>:red</p><p>color 0c</p><p>cls</p><p>goto cmd</p><p>:green</p><p>color 0a</p><p>cls</p><p>goto cmd</p><p>:normal</p><p>color 07</p><p>cls</p><p>goto cmd</p>
<p>website crasher says it cannot find a</p>
<p>I have created a wounderful batch file....check this...<br>https://www.dropbox.com/s/zzcbgmdz8j848ro/All%20in%20one%20PC%20utility.zip?dl=0</p>
<p>It didn't work</p>
<p>http://www.instructables.com/id/Full-screen-batch-matrix/</p><p>Full screen batch matrix</p>
<p>doesn't work the website is still up when I did it</p>
<p>Because all this script does is slow your own connection to the server that the website is on by sending larger packets of data to it. It won't crash anything except your own computer and slow your internet connection to a crawl.</p>
<p>I believe it takes much longer to crash than you think. Other real and highly illegal DOS software can do it nearly instantly, but this is a home-made one, it uses the pinging feature that batch has to do the crash. how this works is, when normally visiting a site, you send a request to the servers to see the site, it then responds with the site, this batch file pings the website, which does the same thing, it sends a request to the server and the server responds giving it data, but this loops the pinging, it continues to send request to the point of the site crashing, DDOS itsself means 'distributed denial of service', meaning that the batch file is pinging it so much, the server cant handle anyone else to visit the site, iv been blabbering but lemme get to the point, pro DDOS software sents thousands of visitors as once to crash it, while this just continuesly sneds requests one after another very, very quickly, meaning it has to be open for a long time. </p>
DDoSing take more effort. Here is a lesson about them. DDoSing with only one programme or device is useless if you are wishing to take down a website. The requests that you make at the websites Will not fill up the servers. You will either need more programs or several device
<p>This is about the most ridiculous thing I've seen :) I run servers for a living, all this is going to do, is slow your OWN internet connection to a crawl by opening a command prompt and sending bits of data to the IP/website. It does nothing to cause the server slow, only your own connection. </p>
testicleboy, you should never post this much crud on a forum page, it is completely unnecessary, put it in a file and upload it and then put the link!, on the page. Here, since you did anyways, i reduced your mountain and made some tweaks that i hope even you can follow simply. and it works BTW, Download it Here: http://www.2shared.com/file/KA4t9WIo/Loading.html , the download link is the small blue button at the bottom of the page it says download on it. GoodLuck :)
<p>The reason why people post code instead of the bat is because if you don't know if they made a malicious file or not and you don't want to accidentally autorun.</p>
Fyi you can click edit when you download it, and read the code
Hey everyone this is the Code_Master giving you an updated Pinger, i just took this guys pinger deleted all but like 3 lines and wala made it probably 340% better! ENJOY! <br>Download Link: http://www.2shared.com/file/EDw0o46c/Pinger.html
<p>Now i crash any website i want.........Awkward silence..hahahahah</p>
<p>This code is so flawed I couldn't even try to fix it. I re wrote it so someone can learn something good from it... Here you go use this if you want to play with simple DDOS . If you place saystatic.exe in the same directory with this batch file it will speak to you . If not change @Saystatic to echo</p><p>@echo off</p><p>Title Dark Crash</p><p>color 0d</p><p>@SayStatic Enter the website you would like to crash</p><p>set /p input= Enter your Website here:</p><p>set /p p=packet size: </p><p>@SayStatic Processing Your request</p><p>@SayStatic Now Crashing Website</p><p>Goto Ping</p><p>:Ping</p><p>cls</p><p>ping %input% -i %p% -t </p><p>goto ping</p>
<p>Thank You :)</p>
<p>For the pc cleanup, at the very start type in a new line &quot;echo off&quot; without the quotes.<br>If you have seen the &quot;c:\Users\James&quot; thing (different for you) that should change it.</p><p>Here is the proper code:</p><p>echo off<br>menu<br> cls<br> echo --------------------------------------------------------------------------------<br> echo PC Cleanup Utility<br> echo --------------------------------------------------------------------------------<br> echo.<br> echo Select a tool<br> echo =============<br> echo.<br> echo [1] Delete Internet Cookies<br> echo [2] Delete Temporary Internet Files<br> echo [3] Disk Cleanup<br> echo [4] Disk Defragment<br> echo [5] Exit<br> echo.<br> set /p op=Run:<br> if %op%==1 goto 1<br> if %op%==2 goto 2<br> if %op%==3 goto 3<br> if %op%==4 goto 4<br> if %op%==5 goto exit<br> goto error<br> :1<br> cls<br> echo --------------------------------------------------------------------------------<br> echo Delete Internet Cookies<br> echo --------------------------------------------------------------------------------<br> echo.<br> echo Deleting Cookies...<br> ping localhost -n 3 &gt;nul<br> del /f /q &quot;%userprofile%\Cookies\*.*&quot;<br> cls<br> echo --------------------------------------------------------------------------------<br> echo Delete Internet Cookies<br> echo --------------------------------------------------------------------------------<br> echo.<br> echo Cookies deleted.<br> echo.<br> echo Press any key to return to the menu. . .<br> pause &gt;nul<br> goto menu<br> :2<br> cls<br> echo --------------------------------------------------------------------------------<br> echo Delete Temporary Internet Files<br> echo --------------------------------------------------------------------------------<br> echo.<br> echo Deleting Temporary Files...<br> ping localhost -n 3 &gt;nul<br> del /f /q &quot;%userprofile%\AppData\Local\Microsoft\Windows\Temporary Internet Files\*.*&quot;<br> cls<br> echo --------------------------------------------------------------------------------<br> echo Delete Temporary Internet Files<br> echo --------------------------------------------------------------------------------<br> echo.<br> echo Temporary Internet Files deleted.<br> echo.<br> echo Press any key to return to the menu. . .<br> pause &gt;nul<br> goto menu<br> :3<br> cls<br> echo --------------------------------------------------------------------------------<br> echo Disk Cleanup<br> echo --------------------------------------------------------------------------------<br> echo.<br> echo Running Disk Cleanup...<br> ping localhost -n 3 &gt;nul<br> if exist &quot;C:\WINDOWS\temp&quot;del /f /q &quot;C:WINDOWS\temp\*.*&quot;<br> if exist &quot;C:\WINDOWS\tmp&quot; del /f /q &quot;C:\WINDOWS\tmp\*.*&quot;<br> if exist &quot;C:\tmp&quot; del /f /q &quot;C:\tmp\*.*&quot;<br> if exist &quot;C:\temp&quot; del /f /q &quot;C:\temp\*.*&quot;<br> if exist &quot;%temp%&quot; del /f /q &quot;%temp%\*.*&quot;<br> if exist &quot;%tmp%&quot; del /f /q &quot;%tmp%\*.*&quot;<br> if not exist &quot;C:\WINDOWS\Users\*.*&quot; goto skip<br> if exist &quot;C:\WINDOWS\Users\*.zip&quot; del &quot;C:\WINDOWS\Users\*.zip&quot; /f /q<br> if exist &quot;C:\WINDOWS\Users\*.exe&quot; del &quot;C:\WINDOWS\Users\*.exe&quot; /f /q<br> if exist &quot;C:\WINDOWS\Users\*.gif&quot; del &quot;C:\WINDOWS\Users\*.gif&quot; /f /q<br> if exist &quot;C:\WINDOWS\Users\*.jpg&quot; del &quot;C:\WINDOWS\Users\*.jpg&quot; /f /q<br> if exist &quot;C:\WINDOWS\Users\*.png&quot; del &quot;C:\WINDOWS\Users\*.png&quot; /f /q<br> if exist &quot;C:\WINDOWS\Users\*.bmp&quot; del &quot;C:\WINDOWS\Users\*.bmp&quot; /f /q<br> if exist &quot;C:\WINDOWS\Users\*.avi&quot; del &quot;C:\WINDOWS\Users\*.avi&quot; /f /q<br> if exist &quot;C:\WINDOWS\Users\*.mpg&quot; del &quot;C:\WINDOWS\Users\*.mpg&quot; /f /q<br> if exist &quot;C:\WINDOWS\Users\*.mpeg&quot; del &quot;C:\WINDOWS\Users\*.mpeg&quot; /f /q<br> if exist &quot;C:\WINDOWS\Users\*.ra&quot; del &quot;C:\WINDOWS\Users\*.ra&quot; /f /q<br> if exist &quot;C:\WINDOWS\Users\*.ram&quot; del &quot;C:\WINDOWS\Users\*.ram&quot;/f /q<br> if exist &quot;C:\WINDOWS\Users\*.mp3&quot; del &quot;C:\WINDOWS\Users\*.mp3&quot; /f /q<br> if exist &quot;C:\WINDOWS\Users\*.mov&quot; del &quot;C:\WINDOWS\Users\*.mov&quot; /f /q<br> if exist &quot;C:\WINDOWS\Users\*.qt&quot; del &quot;C:\WINDOWS\Users\*.qt&quot; /f /q<br> if exist &quot;C:\WINDOWS\Users\*.asf&quot; del &quot;C:\WINDOWS\Users\*.asf&quot; /f /q<br> :skip<br> if not exist C:\WINDOWS\Users\Users\*.* goto skippy /f /q<br> if exist C:\WINDOWS\Users\AppData\Temp\*.zip del C:\WINDOWS\Users\Users\*.zip /f /q<br> if exist C:\WINDOWS\Users\AppData\Temp\*.exe del C:\WINDOWS\Users\Users\*.exe /f /q<br> if exist C:\WINDOWS\Users\AppData\Temp\*.gif del C:\WINDOWS\Users\Users\*.gif /f /q<br> if exist C:\WINDOWS\Users\AppData\Temp\*.jpg del C:\WINDOWS\Users\Users\*.jpg /f /q<br> if exist C:\WINDOWS\Users\AppData\Temp\*.png del C:\WINDOWS\Users\Users\*.png /f /q<br> if exist C:\WINDOWS\Users\AppData\Temp\*.bmp del C:\WINDOWS\Users\Users\*.bmp /f /q<br> if exist C:\WINDOWS\Users\AppData\Temp\*.avi del C:\WINDOWS\Users\Users\*.avi /f /q<br> if exist C:\WINDOWS\Users\AppData\Temp\*.mpg del C:\WINDOWS\Users\Users\*.mpg /f /q<br> if exist C:\WINDOWS\Users\AppData\Temp\*.mpeg del C:\WINDOWS\Users\Users\*.mpeg /f /q<br> if exist C:\WINDOWS\Users\AppData\Temp\*.ra del C:\WINDOWS\Users\Users\*.ra /f /q<br> if exist C:\WINDOWS\Users\AppData\Temp\*.ram del C:\WINDOWS\Users\Users\*.ram /f /q<br> if exist C:\WINDOWS\Users\AppData\Temp\*.mp3 del C:\WINDOWS\Users\Users\*.mp3 /f /q<br> if exist C:\WINDOWS\Users\AppData\Temp\*.asf del C:\WINDOWS\Users\Users\*.asf /f /q<br> if exist C:\WINDOWS\Users\AppData\Temp\*.qt del C:\WINDOWS\Users\Users\*.qt /f /q<br> if exist C:\WINDOWS\Users\AppData\Temp\*.mov del C:\WINDOWS\Users\Users\*.mov /f /q<br> :skippy<br> if exist &quot;C:\WINDOWS\ff*.tmp&quot; del C:\WINDOWS\ff*.tmp /f /q<br> if exist C:\WINDOWS\ShellIconCache del /f /q &quot;C:\WINDOWS\ShellI~1\*.*&quot;<br> cls<br> echo --------------------------------------------------------------------------------<br> echo Disk Cleanup<br> echo --------------------------------------------------------------------------------<br> echo.<br> echo Disk Cleanup successful!<br> echo.<br> pause<br> goto menu<br> :4<br> cls<br> echo --------------------------------------------------------------------------------<br> echo Disk Defragment<br> echo --------------------------------------------------------------------------------<br> echo.<br> echo Defragmenting hard disks...<br> ping localhost -n 3 &gt;nul<br> defrag -c -v<br> cls<br> echo --------------------------------------------------------------------------------<br> echo Disk Defragment<br> echo --------------------------------------------------------------------------------<br> echo.<br> echo Disk Defrag successful!<br> echo.<br> pause<br> goto menu<br> :error<br> cls<br> echo Command not recognized.<br> ping localhost -n 4 &gt;nul<br> goto menu<br> :exit</p><p><br> echo Thanks for using PC Cleanup Utility by Ryan<br> ping 127.0.0.1 &gt;nul<br> exit</p>
<p>if you do it like tis he saves the password as txt file</p><p>@echo off</p><p>:Start2</p><p>cls</p><p>goto Start</p><p>:Start</p><p>title Password Generator</p><p>echo I will make you a new password.</p><p>echo Please write the password down somewhere in case you forget it.</p><p>echo ----------------------------------------&shy;-----------------------</p><p>echo 1) 1 Random Password</p><p>echo Input your choice</p><p>set input=</p><p>set /p input= Choice:</p><p>if %input%==1 goto A if NOT goto Start2</p><p>:A</p><p>cls</p><p>echo wachtwoord:%random%&gt; achtwoord.txt</p><p>echo Your password is saved as a txt file</p><p>echo Now choose what you want to do.</p><p>echo 1) Go back to the beginning</p><p>echo 2) Exit</p><p>set input=</p><p>set /p input= Choice:</p><p>if %input%==1 goto Start2 if NOT goto Start 2</p><p>if %input%==2 goto Exit if NOT goto Start 2</p><p>:Exit</p><p>exit</p>
One thing that might be useful, is encrypting the username and password file. Any one have ideas?
<p>This is somewhat late, but you could convert the .bat file into a .exe file using a free .bat to .exe converter. That's how I keep the source code hidden. Anyone with at least basic computer knowledge will be able to figure out the passwords and usernames otherwise, whereas if you were to convert it to a .exe file, it would make it a much more difficult task for them.</p>
<p>bat 2 exe converter's do provide some small amount of source code protection but all they do is wrap the contents, the code is just stored in a temporary folder while it runs not much protection if the really want to find it</p>

About This Instructable

706,204views

69favorites

License:

Bio: I am a computer "nerd" and I admit it...but if you see me on the street you will not know it...:)
More by radame:5 Cool Batch Files 
Add instructable to: