Friday, March 21, 2014

check,analysis,defrag,web hstory -computer clearner, with bat program

check,analysis,defrag,web hstory -computer clearner, with bat program
+++++++++++++++++++++++++++++++++++++
သူငယ္ခ်င္း ဥဥ ကိုကို ေဒၚေဒၚ မမ တိုတိုဂီးတို႕သိပီးသားဆိုရင္ေက်ာ္သြားလိုက္ေနာ္...
ေနာက္ပီး code ထဲမွာပါတဲ့ နာမ္မည္ေတြလည္းမေမးနဲ႕ေညာ္  ခနခနတတိရလို႕ထည့္ေရးထားတာငိငိ


ကြန္ပ်ဴတာတြက္ ၃ရက္တစ္ခါေလာက္လုပ္ေပးသင့္တဲ့ check , defrag , analysis လုပ္ေပးဖို႕ပါ
ေနာက္ထပ္ temp file ,cookies,history ,perfetch ,web history ေတြေကာျဖတ္ဖို႕ေရးထားတာပါ

check လုပ္တယ္ဆိုတာ drive ထဲမွာရွိတဲ့ error ေတြကို ရွာျပီးစစ္ေပးျပင္ေပးတာပါ
defrag ကေတာ့ file ေတြစနတစ္တက်ျပန္ျပင္ေပးတာမ်ိဳးပါ
temp file ,cookies,history ,perfetch ,web history ဒါေတြကလည္း ကြန္ပ်ဴတာေလးေစတဲ့အေျကာင္းအရင္းထဲမွာပါတယ္ဗ်
(ဆရာေတြေျပာတာျကားဖူးလို႕တားလည္းေတခ်ာမတိ၀ူးးဟီးး)


အရင္ဆံုး computer မွာပါတဲ့ tool နဲ႕ပဲ check , defrag , disk cleanup လုပ္တာျပပါ့မယ္ဂ်ာ
အရင္ဆံုး Drive D မွာ right click ေထာက္properties ထဲ၀င္ tool ကိုသြားအဲ့မွာ check ဆိုတာရွိတယ္ ကလိျကည့္ေနာ္
defrag လည္းရွိတယ္ အဲ့တာလည္းကြကိုကလိျကည့္
ေနာက္ထပ္ disk clean up က run boxမွာ cleanmgr လို႔ရိုက္ပီးအန္းတားေခါက္လိုက္ပါ
ျပီးရင္ clean လုပ္ဖို႕ box က်လာရင္ OKေပလိုက္ပါသူclean ရမွာေတြရွာေဖြရွင္းေပးလိမ့္မယ္
ေနာက္ထပ္ေဘာစ္တစ္ခုက်လာလိမ့္ဦးမယ္ အမွန္အကုန္လံုးတာတက္ေပး
ျပီးရင္okမွာကလစ္ပါျပီးရင္ deleteကိုဆက္ကလစ္ပါ ဒါဆိုရင္သူရွင္းစရာရွီတာထပ္ရွင္းေပးပါလိမ့္မယ္


code ထဲက
အဓိကcommand ေလးေတြ့ေျပာျပမယ္ေနာ္ :)


အရင္ဆံုးDrive Dကို check လုပ္ျကည့္ျကတာေပါ့
C:\window\system32 ထဲက cmdမွာ right click ေထာက္ပါ run as administrator ကိုကလစ္ေပးပါ
အမဲ ေရာင္ screen မွာ
chkdsk /f /v /r D:
လို႔ရိုက္ပီးအန္းတားေခါက္လိုက္ပါ
chkdsk ကေတာ့ခ်က္လုပ္ဖို႕ကြန္မန္းပါ /f /v /r ကိုသိခ်င္ရင္ chkdsk /? လို႕ရိုက္ပီးအန္းတားေခါက္ျကည့္ရင္ရွင္းျပထားတာေတြ႕ပါလိမ့္မယ္

ေနာက္တစ္ခါ D drive ကိုdefrag လုပ္ျကည့္မယ္ဗ်ာ
defrag /u /v D:
defrag ဆိုတာက D drive ကို defrag လုပ္ဖို႕ကြန္မန္းေလးပါ
/u /v ကိုသိခ်င္ရင္ေတာ့ cmd မွာ defrag /? လို႕ရိုက္ပီးအန္းတားေခါက္လိုက္ပါ


ေအာ.၀န္ခံစရာတစ္ခုရွိေသးတယ္ 
temp file ,cookies,history ,perfetch ,web history ဒါေတြျဖတ္ဖို႕က ကၽြန္ေတာ္ေရးထားတာမဟုတ္၀ူး
အရင္ကရပ္ေစာက္မွာတံုးဖုန္းနဲ႕ကလိတဲ့းကဖိုရမ္တစ္ခုကခိုးလာတာဟီးဟီးးးးး
ဘယ္သူဘယ္၀ါေရးတယ္ဆိုတာေတာ့တကယ္ေမ့သြားလို႕ပါ
ခရပ္ဒစ္ေပးပါတယ္ခင္ည

ေနာက္တစ္ခု ကြန္ပ်ဴတာကို scan လုပ္ဖို႕က
SFC /SCANNOW ကို ေရးေပးထားတာပါ
cmd မွာ right click ေထာက္ run as administroator နဲ႕ run ေပးပါ
SFC /SCANNOW လို႕ရိုက္ပီးအန္းတားေခါက္လိုက္ပါ
ဒါဆိုရင္ ကြန္ပ်ဴတာ system file ပ်က္တာေတြျပင္ေပးတယ္ဆိုလားဘာလားးဟဲဟဲ.ေသခ်ာမသိဘူး
တစ္ခ်ိဳ႕ကြန္ပ်ဴတာေတြမွာ ၂၀% ေလာက္ဆိုရပ္သြားတတ္ပါတယ္
အဲ့ဒါကို ေတာ့ safe mode with command line ကေနလုပ္ေပးမွ ၁၀၀% ျပည့္ေအာင္လုပ္ေပးမွာပဲ
ဒါေတာ့ကၽြန္ေတာ္ကိုယ္တိုင္စမ္းျပီးသား safe mode တက္တာေတာ့ pc တစ္လံုးနဲ႕တစ္လံုးမတူေတာ့မေျပာေတာ့ဘူး
(မသိလို႕လည္းပါဒယ္ ခိခိ) ကၽြႏ္ေတာ့လက္ေတာ့ လီနိုဗိုကေတာ့ window စတက္ခ်င္းမွာ f8ကီးကို စက္စက္စက္ နိပ္ေပးထားရင္ safe mode with command ေပၚပါတယ္

bat file သံုးနည္း
+++++++++
window key+R>type notepad and press enter>ေအာက္ဆံုးက code ေတြေကာ္ပီကူးပီး notepad ထဲထည့္ပါ
ctrl+S နိပ္ပါ file name မွာ cleaner.bat လို႕ေပးပါ desktop မွာပဲsave ေပးလိုက္ပါ
(((((code ေတြကို notepad ထဲ paste ခ်တဲ့ေနရာမွာသိတိထားဦးေနာ္ ကၽြႏ္ေတာ္ပံုမွျပထားတဲ့တိုင္းအစီအစဥ္က်မွရမွာပါ)))))

(ကၽြန္ေတာ္က C,D,E,F,G,H,I ဒီ drive ေတြတြက္ပဲေရးေပးထားတာေနာ္ တျခားdrive ေတြမပါဘူး)
ဥပမာ D ကို check ,defrag လုပ္ခ်င္တယ္ဆိုပါေတာ့
desktop ေပၚက cleaner.bat ကို right click ေထာက္ run as administrator ကိုကလစ္ေပးပါ
အဲ့ဒါမွ check defrag လုပ္လို႕ရမွာေနာ္

D (အျကီးစာလံုး)ရိုက္ပီးအန္းတားေခါက္လိုက္ပါ
ဒါဆိုရင္  defrag လုပ္ဖို႕ check လုပ္ဖို႕ cleaner လုပ္ဖို႕စာေလးေတြထပ္က်လာပါမယ္
အဲ့မွာေရးျပထားတဲ့တိုငး္သာဆက္လုပ္ျကည့္ဗ်ာ.ဟဲ..
နားမလည္မွပဲျပန္ေမးေပါ့
D အတြက္လုပ္ပီးပီ) အဲ့ထဲကေနျပန္ထြက္ခ်င္တယ္(မူလေနရာကိုျပန္ေရာက္ခ်င္တယ္)ဆိုရင္ home လို႕ရိုက္ပီးအန္းတားေခါက္လိုက္ပါ
 ေနာက္ထပ္ C ကိုလုပ္ခ်င္ရင္ C (အျကီးစာလ့ုး)ရိုက္ပီးအန္းတားေခါက္ေပးလိုက္ပါ

window တင္ထားတဲ့ Drive နဲ႕ USB flash drive ေတြကို check လုပ္မယ္ဆိုရင္  Y/N လို႕ေမးပါမယ္
yလို႔ရိုက္ပီးအန္းတားေခါက္လိုက္ပါ
window တင္ထားတဲ့ drive ကို check လုပ္ဖို႕ကေတာ့ restart ခ်ပီးျပန္တက္လာတဲ့အခ်ိန္မွာလုပ္ေနပါလိမ့္မယ္


နားမလည္တာရွိရင္ျပန္ေမးေနာ္



(ကၽြႏ္ေတာ္တင္သမွ်ပိုစ္မ်ားကိုျကိုက္သလိုျပင္ပီးျကိုက္သလိုျပန္ရွဲနိုင္ပါ၏)











@echo off
title IT Learner And Sharer
:cartoonchitlay
cls
color 0a
echo.
echo       Useful Program for Computer(Yat Sauk Tar Lay)
echo          *****************************

echo.
echo Can Use for below
echo ################
echo.
echo -Check Drive
echo -Defrag Drive
echo -Analysis
echo -Computer Cleaner and web history cleaner
echo -Scan Your Computer
echo.
echo.
echo This program for Drive C,D,E,F,G,H,I
echo.

echo.
echo                            ***********************
echo                        *IT Learner And Sharer*
echo                            ***********************
echo.
set /p cartoon=Type you want,What Drive:
if %cartoon%==C goto :C
if %cartoon%==D goto :D
if %cartoon%==E goto :E
if %cartoon%==F goto :F
if %cartoon%==G goto :G
if %cartoon%==H goto :H
if %cartoon%==I goto :I


:C
cls
color 0c
echo For Drive C
echo *********
echo.
echo.
echo.
echo If you want to defrag drive C ,type 'defragc' and press enter .
echo ----------
echo If you want to check Drive C,type 'checkc' and press enter.
echo ----------
echo If you want to clear web history,temp,cookies ,recent printers, press"clear" and press enter.
echo -----------
echo If you want to scan your computer type 'scan' and press enter.
echo  ---------
echo If you wan to return Home ,type 'home' and press enter.
echo.
echo ====================================================
echo.
set /p mtk=Type you want:
if %mtk%==defragc goto :defragc
if %mtk%==checkc goto :checkc
if %mtk%==clear goto :Z
if %mtk%==scan goto :s
if %mtk%==home goto :cartoonchitlay

:defragc
defrag /u /v C:
msg *Thank for using this (Yat Sauk Tar Lay)
start http://yatsauktarlay1996.blogspot.com/?m=1
cls
goto :C
:checkc
chkdsk /f /v /r C:
msg *Thank for using this (Yat Sauk Tar Lay)
start http://yatsauktarlay1996.blogspot.com/?m=1
cls
goto :C




:D
color 0d
cls
echo For Drive D
echo *********
echo.
echo.
echo.
echo If you want to defrag drive D,type 'defragd' and press enter .
echo ----------
echo If you want to check Drive D,type 'checkd' and press enter.
echo ----------
echo If you want to clear web history,temp,cookies ,recent printers, press"clear" and press enter.
echo -----------
echo If you want to scan your computer type 'scan' and press enter.
echo  ---------
echo If you wan to return Home ,type 'home' and press enter.
echo.
echo ====================================================
echo.
set /p mtk=Type you want:
if %mtk%==defragd goto :defragd
if %mtk%==checkd goto :checkd
if %mtk%==clear goto :Z
if %mtk%==scan goto :s
if %mtk%==home goto :cartoonchitlay

:defragd
defrag /u /v D:
msg *Thank for using this (Yat Sauk Tar Lay)
start http://yatsauktarlay1996.blogspot.com/?m=1
cls
goto :D
:checkd
chkdsk /f /v /r D:
msg *Thank for using this (Yat Sauk Tar Lay)
start http://yatsauktarlay1996.blogspot.com/?m=1
cls
goto :D











:E
color 0e
cls
echo For Drive E
echo *********
echo.
echo.
echo.
echo If you want to defrag drive E,type 'defrage' and press enter .
echo ----------
echo If you want to check Drive E,type 'checke' and press enter.
echo ----------
echo If you want to clear web history,temp,cookies ,recent printers, press"clear" and press enter.
echo -----------
echo If you want to scan your computer type 'scan' and press enter.
echo  ---------
echo If you wan to return Home ,type 'home' and press enter.
echo.
echo ====================================================
echo.
set /p mtk=Type you want:
if %mtk%==defrage goto :defrage
if %mtk%==checke goto :checke
if %mtk%==clear goto :Z
if %mtk%==scan goto :s
if %mtk%==home goto :cartoonchitlay

:defrage
defrag /u /v E:
msg *Thank for using this (Yat Sauk Tar Lay)
start http://yatsauktarlay1996.blogspot.com/?m=1
cls
goto :E
:checke
chkdsk /f /v /r E:
msg *Thank for using this (Yat Sauk Tar Lay)
start http://yatsauktarlay1996.blogspot.com/?m=1
cls
goto :E















:F
color 0F
cls
echo For Drive F
echo *********
echo.
echo.
echo.
echo If you want to defrag drive F,type 'defragf' and press enter .
echo ----------
echo If you want to check Drive F,type 'checkf' and press enter.
echo ----------
echo If you want to clear web history,temp,cookies ,recent printers, press"clear" and press enter.
echo -----------
echo If you want to scan your computer type 'scan' and press enter.
echo  ---------
echo If you wan to return Home ,type 'home' and press enter.
echo.
echo ====================================================
echo.
set /p mtk=Type you want:
if %mtk%==defragf goto :defragf
if %mtk%==checkf goto :checkf
if %mtk%==clear goto :Z
if %mtk%==scan goto :s
if %mtk%==home goto :cartoonchitlay

:defragf
defrag /u /v F:
msg *Thank for using this (Yat Sauk Tar Lay)
start http://yatsauktarlay1996.blogspot.com/?m=1
cls
goto :F
:checkf
chkdsk /f /v /r F:
msg *Thank for using this (Yat Sauk Tar Lay)
start http://yatsauktarlay1996.blogspot.com/?m=1
cls
goto :F
















:G
color 0b
cls
echo For Drive G
echo *********
echo.
echo.
echo.
echo If you want to defrag drive G,type 'defragg' and press enter .
echo ----------
echo If you want to check Drive G,type 'checkg' and press enter.
echo ----------
echo If you want to clear web history,temp,cookies ,recent printers, press"clear" and press enter.
echo -----------
echo If you want to scan your computer type 'scan' and press enter.
echo  ---------
echo If you wan to return Home ,type 'home' and press enter.
echo.
echo ====================================================
echo.
set /p mtk=Type you want:
if %mtk%==defragg goto :defragg
if %mtk%==checkg goto :checkg
if %mtk%==clear goto :Z
if %mtk%==scan goto :s
if %mtk%==home goto :cartoonchitlay

:defragg
defrag /u /v :G
msg *Thank for using this (Yat Sauk Tar Lay)
start http://yatsauktarlay1996.blogspot.com/?m=1
cls
goto :G
:checkg
chkdsk /f /v /r G:
msg *Thank for using this (Yat Sauk Tar Lay)
start http://yatsauktarlay1996.blogspot.com/?m=1
cls
goto :G











:H
cls
color 4b
echo For Drive H
echo *********
echo.
echo.
echo.
echo If you want to defrag drive H,type 'defragh' and press enter .
echo ----------
echo If you want to check Drive H,type 'checkh' and press enter.
echo ----------
echo If you want to clear web history,temp,cookies ,recent printers, press"clear" and press enter.
echo -----------
echo If you want to scan your computer type 'scan' and press enter.
echo  ---------
echo If you wan to return Home ,type 'home' and press enter.
echo.
echo ====================================================
echo.
set /p mtk=Type you want:
if %mtk%==defragh goto :defragh
if %mtk%==checkh goto :checkh
if %mtk%==clear goto :Z
if %mtk%==scan goto :s
if %mtk%==home goto :cartoonchitlay

:defragh
defrag /u /v :H
msg *Thank for using this (Yat Sauk Tar Lay)
start http://yatsauktarlay1996.blogspot.com/?m=1
cls
goto :H
:checkh
chkdsk /f /v /r H:
msg *Thank for using this (Yat Sauk Tar Lay)
start http://yatsauktarlay1996.blogspot.com/?m=1
cls
goto :H











:H
cls
echo For Drive H
echo *********
echo.
echo.
echo.
echo If you want to defrag drive I,type 'defragi' and press enter .
echo ----------
echo If you want to check Drive I,type 'checki' and press enter.
echo ----------
echo If you want to clear web history,temp,cookies ,recent printers, press"clear" and press enter.
echo -----------
echo If you want to scan your computer type 'scan' and press enter.
echo  ---------
echo If you wan to return Home ,type 'home' and press enter.
echo.
echo ====================================================
echo.
set /p mtk=Type you want:
if %mtk%==defragi goto :defragi
if %mtk%==checki goto :checki
if %mtk%==clear goto :Z
if %mtk%==scan goto :s
if %mtk%==home goto :cartoonchitlay

:defragi
defrag /u /v :I
msg *Thank for using this (Yat Sauk Tar Lay)
start http://yatsauktarlay1996.blogspot.com/?m=1
cls
goto :I
:checki
chkdsk /f /v /r I:
msg *Thank for using this (Yat Sauk Tar Lay)
start http://yatsauktarlay1996.blogspot.com/?m=1
cls
goto :I











:s
SFC /SCANNOW
msg *Thank for using this (Yat Sauk Tar Lay)
start http://yatsauktarlay1996.blogspot.com/?m=1
cls
goto :cartoonchitlay






















:Z
del /s /f /q c:\windows\temp\*.*
rd /s /q c:\windows\temp
md c:\windows\temp
del /s /f /q C:\WINDOWS\Prefetch
del /s /f /q %temp%\*.*
rd /s /q %temp%
md %temp%
deltree /y c:\windows\tempor~1
deltree /y c:\windows\temp
deltree /y c:\windows\tmp
deltree /y c:\windows\ff*.tmp
deltree /y c:\windows\history
deltree /y c:\windows\cookies
deltree /y c:\windows\recent
deltree /y c:\windows\spool\printers
del c:\WIN386.SWP
msg *Thank for using this (Yat Sauk Tar Lay)
start http://yatsauktarlay1996.blogspot.com/?m=1
cls
goto :cartoonchitlay





0 comments:

Post a Comment