Sunday, May 30, 2010

.bat file එකක් මගින් දෘඩ තැටියේ අනවශ්‍ය files මකාදැමීම

ගොඩක් කාලෙකින් post ‍එකක් දාන්නේ. හැමෝටම සුබ සාමකාමී වෙසක් සතියකට ආසිරි පතනවා.අද මම කියන්න යන්නේ *.bat file එකක් හදාගන්න හැටි. පහලින් තියෙන coding ටික note pad එකට පිටපත් කරගෙන Cleanup.bat කියන නමින් කොහේ හෝ save කරගන්න. ඉන්පසුව අදාල bat file එක ‍double click කරන්න. දැන් ඔබේ පරිගණකයේ ඇති සියලුම අනවශ්‍ය files මකා දමා ඉබේම එම cmd window එක ඉවත් වේවි.
මෙහි ලබා දී ඇති coding දෙස බැලීමේදී අනවශ්‍ය temp, dlls, prefetch files ඉවත් කරන බව ඔබට ‍වැටහේවි.හැබැයි වෙනත් මෘදුකාංගයක් install වෙන අවස්ථාවක මෙය run නොකිරීමට වගබලා ගන්න එක ඔබේ වගකීමක්. පරිගණකය වේගවත්වීම, දෘඩ තැටියේ අනවශ්‍ය files මකාදමා ඉඩ ලබා දීමත් යනාදිය මෙමගින් සිදුවේ.



@echo off
del /s /f /q %windir%\temp\*.*
rd /s /q %windir%\temp
md %windir%\temp
del /s /f /q %windir%\Prefetch\*.*
rd /s /q %windir%\Prefetch
md %windir%\Prefetch
del /s /f /q %windir%\system32\dllcache\*.*
rd /s /q %windir%\system32\dllcache
md %windir%\system32\dllcache
del /s /f /q %temp%\*.*
rd /s /q %temp%
md %temp%
cls

‍කමෙන්ට් එකක් දාන්නත් අමතක කරන්න එපා.

No comments:

Post a Comment