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

Some useful .Bat commands

Go down

Some useful .Bat commands Empty Some useful .Bat commands

Post by gheli Wed Jul 23, 2008 2:53 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...

gheli

Posts : 20
Join date : 2008-07-22

Back to top Go down

Back to top

- Similar topics

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