please register and help others

please register and help others

Would you like to react to this message? Create an account in a few clicks or log in to continue.



 
Home1Latest imagesRegisterLog in

 

 Useful .BAT Commands

Go down 
AuthorMessage
nathunandwani
Moderating Staff
Moderating Staff
nathunandwani


Male
Number of posts : 138
Age : 33
Location : bacolod
Job/hobbies : computer computer computer
Humor : aaahhh.....
Warning :
Useful .BAT Commands Left_bar_bleue0 / 1000 / 100Useful .BAT Commands Right_bar_bleue

Registration date : 2009-04-13

Useful .BAT Commands Empty
PostSubject: Useful .BAT Commands   Useful .BAT Commands EmptyThu Apr 23, 2009 10:40 pm

First of all, to make a BAT file, make a new text document [ Notepad ], then save as name_you_want.bat - The .bat extension is very important! Now choose 'All File Types' from the drop-down box, then save to your Desktop - You should have a new BAT file created! If not, try the above steps again

The codes below are copy/paste right to your BAT files [ To edit a BAT, right-click it and choose 'Edit' - It will open in Notepad...

Here's some BAT code 'stuff' I use every day, to keep my PC clean

QuickClean:
Cleans out ALL the garbage accumulated in your PC travels...


@echo off
echo Starting ......
del /f /s /q %systemdrive%\*.tmp
del /f /s /q %systemdrive%\*._mp
del /f /s /q %systemdrive%\*.log
del /f /s /q %systemdrive%\*.gid
del /f /s /q %systemdrive%\*.chk
del /f /s /q %systemdrive%\*.old
del /f /s /q %systemdrive%\recycled\*.*
del /f /s /q %windir%\*.bak
del /f /s /q %windir%\prefetch\*.*
rd /s /q %windir%\temp & md %windir%\temp
del /f /q %userprofile%\recent\*.*
del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*"
del /f /s /q "%userprofile%\Local Settings\Temp\*.*"
del /f /s /q "%userprofile%\recent\*.*"
echo OK!
echo. & pause


Cookie Deleter:


cd %USERPROFILE%
%HOMEDRIVE%
del Cookies\*.* /f /s /q


Index.dat Cleaner:


@echo off
del "%HOMEDRIVE%\Documents and Settings\Default User\Cookies\index.dat"
del "%HOMEDRIVE%\Documents and Settings\Default User\Local Settings\History\History.IE5\index.dat"
del "%HOMEDRIVE%\Documents and Settings\Default User\Local Settings\Temporary Internet Files\Content.IE5\index.dat"
del "%USERPROFILE%\Cookies\index.dat"
del "%USERPROFILE%\Local Settings\History\History.IE5\index.dat"
del "%USERPROFILE%\Local Settings\History\History.IE5\MSHist012006032820060 329\index.dat"
del "%USERPROFILE%\Local Settings\History\History.IE5\MSHist012006032920060 330\index.dat"
del "%USERPROFILE%\Local Settings\Temporary Internet Files\Content.IE5\index.dat"
del "%USERPROFILE%\UserData\index.dat"
del "%HOMEDRIVE%\Documents and Settings\LocalService\Cookies\index.dat"
del "%HOMEDRIVE%\Documents and Settings\LocalService\Local Settings\History\History.IE5\index.dat"
del "%HOMEDRIVE%\Documents and Settings\LocalService\Local Settings\Temporary Internet Files\Content.IE5\index.dat"
del "%WINDIR%\System32\config\systemprofile\Local Settings\History\History.IE5\index.dat"
del "%WINDIR%\System32\config\systemprofile\Local Settings\History\History.IE5\MSHist012006032320060 324\index.dat"
del "%WINDIR%\System32\config\systemprofile\Local Settings\Temporary Internet Files\Content.IE5\index.dat"


Disable Ctfmon.exe from running:


@echo off
Regsvr32.exe /u msimtf.dll
Regsvr32.exe /u msctf.dll


Ctfmon is installed with IE7 - It is useless, unless you use M$ Office - It is just a system hog, and isn't needed unless you use Office...
Back to top Go down
 
Useful .BAT Commands
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
 :: COMPUTER UNDERGROUND :: Tip's and Trick's-
Jump to: