please register and help others




 
Home1CalendarFAQRegisterLog in
Share | 
 

 Useful .BAT Commands

View previous topic View next topic Go down 
AuthorMessage
nathunandwani
Moderating Staff
Moderating Staff


Male
Number of posts: 138
Age: 24
Location: bacolod
Job/hobbies: computer computer computer
Humor: aaahhh.....
Warning:
0 / 1000 / 100

Registration date: 2009-04-13

PostSubject: Useful .BAT Commands   Thu Apr 23, 2009 9: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

View previous topic View next topic Back to top 
Page 1 of 1

 Similar topics

-
» Server Commands
» List of server commands!
» FEAR Drill commands v.1
» Ruby/RGSS Lessons
» Chat Box Bot!

Permissions in this forum:You cannot reply to topics in this forum
 ::  :: -