.Bat Dosyası Hakkında

Halktan Biri

Dekan
Emektar
Katılım
30 Ekim 2016
Mesajlar
9,401
Reaksiyon puanı
9,165
Puanları
293
Merhaba. İçerisindeki kodlar aşağıdaki gibi olan bir .bat dosyası oluşturdum:
Kod:
@echo off
color e
@echo on
del C:\Users\Kullanıcı\AppData\Local\Temp
del C:\Windows\Temp
del C:\Windows\Prefetch
del C:\Users\Kullanıcı\Recent
exit
Bu bat dosyasını çalıştırdığımda her zaman şu resimdeki gibi olmasını istemiyorum.Resim şu:
Adsız.jpg

Bat dosyasını çalıştırdığımda bana Y/N yani evet mi hayır mı diye sormasını istemiyorum. Yani oluşturduğum bu bat dosyasını çalıştırdığımda içinde kodları soru sormadan çalıştırmasını istiyorum. Bu mümkün mü? Mümkünse nasıl yapabilirim yani bat dosyasının içine kod ekleyerek mi yoksa farklı bir yolla mı bunu yapabilirim?
@Ben Kenobi @f.krtl1
 

Ben Kenobi

Dekan
Katılım
6 Kasım 2011
Mesajlar
7,329
Reaksiyon puanı
3,156
Puanları
1,358
BleachBit bunları temizliyor zaten, bat dosyasına gerek yok.,
del /Q
ile yaparsan uyarı vermez.
 

Halktan Biri

Dekan
Emektar
Katılım
30 Ekim 2016
Mesajlar
9,401
Reaksiyon puanı
9,165
Puanları
293
@Ben Kenobi Kayıt defteri temizliği için önerdiğiniz bir program var mı?
Bir de vaktiniz varsa şu kodlara bakabilir misiniz?
Daha önceden internetten araştırıp bulduğum Windows temizliği ile ilgili bazı bat dosyası komutlarıdır.
Bat dosyasını biraz kendimce değiştirdim.
Kod:
@echo off
color e
@echo on

attrib -H -R -A “%userprofile%\Cookies\*.*”
del “%USERPROFILE%”\Cookies\*.*”/f/a/s/q

attrib -H -R -A “%userprofile%\local settings\temporary internet files\*.*”
del “%userprofile%\local settings\temporary internet files\*.*”/f/a/s/q
del /f /q /s C:\Documents and Settings\Administrator\Cookies\*.*
cd %USERPROFILE%\Recent
del *.* /f/q/s
cd\
cd %USERPROFILE%\Local Settings\Temp
del *.* /f/q/s
cd\
cd %USERPROFILE%\Local Settings\Temporary Internet Files
del *.* /f/q/s
del /f /q /s C:\RECYCLER\S-1-5-21-854245398-1177238915-1644491937-500\*.*
del /f /q /s %WinDir%\Temp\*.*
del /f /q /s %TEMP%\*.*
del /f /q /s %SystemDrive%\*.old
del /f /q /s %SystemDrive%\*.log
del /f /q /s %SystemDrive%\*.tmp
del /f /q /s %SystemDrive%\*.chk
del /f /q /s %WinDir%\Prefetch\*.*
del /f /q /s %WinDir%\Driver Cache\i386\*.*
del /f /q /s %WinDir%\system32\dllcache\*.*
del /f /q /s C:\Documents and Settings\%USERPROFILE%\Local Settings\Temporary Internet Files\*.*

cd\
attrib -h -r -s fooool.exe
attrib -h -r -s autorun.inf
attrib -h -r -s bittorrent.exe
attrib -h -r -s sxs.exe
attrib -h -r -s copy.exe
attrib -h -r -s command.exe
attrib -h -r -s msvcr71.dll
attrib -h -r -s ie.exe
attrib -h -r -s copy.exe
attrib -h -r -s autorun.vbs
attrib -h -r -s WSscript.exe
attrib -h -r -s r6r.exe
attrib -h -r -s l2f.cmd
attrib -h -r -s yp.bat
del r6r.exe
del l2f.cmd
del yp.bat
del fooool.exe
del autorun.inf
del bittorrent.exe
del c:\windows\bittorrent.exe
del sxs.exe
del copy.exe
del command.exe
del ravmonlog
del msvcr71.dll
del ie.exe
del copy.exe
del autorun.vbs
del WSscript.exe
del winfile.exe
del secenekler.ini
LUTFEN BEKLEYİNİZ…
del WSscript.exe
del autorun.vbs.exe

cd windows
cd system32
attrib -h -r -s activexdebugger32.exe
del activexdebugger32.exe
attrib -h -r -s amvo.exe
attrib -h -r -s amvo0.dll
del amvo.exe
del amvo0.dll

d:
attrib -h -r -s yp.bat
attrib -h -r -s fooool.exe
attrib -h -r -s autorun.inf
attrib -h -r -s bittorrent.exe
attrib -h -r -s sxs.exe
attrib -h -r -s copy.exe
attrib -h -r -s command.exe
attrib -h -r -s msvcr71.dll
attrib -h -r -s ie.exe
attrib -h -r -s copy.exe
attrib -h -r -s autorun.vbs
attrib -h -r -s WSscript.exe
attrib -h -r -s r6r.exe
attrib -h -r -s l2f.cmd
del r6r.exe
del l2f.cmd
del fooool.exe
del autorun.inf
del bittorrent.exe
del sxs.exe
del copy.exe
del command.exe
del ravmonlog
del msvcr71.dll
del ie.exe
del copy.exe
del autorun.vbs
del WSscript.exe
del WSscript.exe
del autorun.vbs.exe
del winfile.exe
del secenekler.ini
del *.bat
del *.cmd
del attrib -H -R -A -s C:\Documents and Settings\Administrator\Local Settings\Temporary Internet Files\*.*
e:
attrib -h -r -s yp.bat
attrib -h -r -s fooool.exe
attrib -h -r -s autorun.inf
attrib -h -r -s bittorrent.exe
attrib -h -r -s sxs.exe
attrib -h -r -s copy.exe
attrib -h -r -s command.exe
attrib -h -r -s msvcr71.dll
attrib -h -r -s ie.exe
attrib -h -r -s copy.exe
attrib -h -r -s autorun.vbs
attrib -h -r -s WSscript.exe
attrib -h -r -s r6r.exe
attrib -h -r -s l2f.cmd
del r6r.exe
del l2f.cmd
del fooool.exe
del autorun.inf
del bittorrent.exe
del sxs.exe
del copy.exe
del command.exe
del ravmonlog
del msvcr71.dll
del ie.exe
del copy.exe
del autorun.vbs
del WSscript.exe
del WSscript.exe
del autorun.vbs.exe
del winfile.exe
del secenekler.ini
del *.bat
del *.cmd
f:
attrib -h -r -s yp.bat
attrib -h -r -s fooool.exe
attrib -h -r -s autorun.inf
attrib -h -r -s bittorrent.exe
attrib -h -r -s sxs.exe
attrib -h -r -s copy.exe
attrib -h -r -s command.exe
attrib -h -r -s msvcr71.dll
attrib -h -r -s ie.exe
attrib -h -r -s copy.exe
attrib -h -r -s autorun.vbs
attrib -h -r -s WSscript.exe
attrib -h -r -s r6r.exe
attrib -h -r -s l2f.cmd
del r6r.exe
del l2f.cmd
del fooool.exe
del autorun.inf
del bittorrent.exe
del sxs.exe
del copy.exe
del command.exe
del ravmonlog
del msvcr71.dll
del ie.exe
del copy.exe
del autorun.vbs
del WSscript.exe
del WSscript.exe
del autorun.vbs.exe
del winfile.exe
del secenekler.ini
del *.bat
del *.cmd
g:
attrib -h -r -s yp.bat
attrib -h -r -s fooool.exe
attrib -h -r -s autorun.inf
attrib -h -r -s bittorrent.exe
attrib -h -r -s sxs.exe
attrib -h -r -s copy.exe
attrib -h -r -s command.exe
attrib -h -r -s msvcr71.dll
attrib -h -r -s ie.exe
attrib -h -r -s copy.exe
attrib -h -r -s autorun.vbs
attrib -h -r -s WSscript.exe
del fooool.exe
del autorun.inf
del bittorrent.exe
del sxs.exe
del copy.exe
del command.exe
del ravmonlog
del msvcr71.dll
del ie.exe
del copy.exe
del autorun.vbs
del WSscript.exe
del WSscript.exe
del autorun.vbs.exe
del winfile.exe
del secenekler.ini
del *.bat
del *.cmd
h:
attrib -h -r -s yp.bat
attrib -h -r -s fooool.exe
attrib -h -r -s autorun.inf
attrib -h -r -s bittorrent.exe
attrib -h -r -s sxs.exe
attrib -h -r -s copy.exe
attrib -h -r -s command.exe
attrib -h -r -s msvcr71.dll
attrib -h -r -s ie.exe
attrib -h -r -s copy.exe
attrib -h -r -s autorun.vbs
attrib -h -r -s WSscript.exe
del fooool.exe
del autorun.inf
del bittorrent.exe
del sxs.exe
del copy.exe
del command.exe
del ravmonlog
del msvcr71.dll
del ie.exe
del copy.exe
del autorun.vbs
del WSscript.exe
del WSscript.exe
del autorun.vbs.exe
del winfile.exe
del secenekler.ini
del *.bat
del *.cmd

i:
attrib -h -r -s yp.bat
attrib -h -r -s fooool.exe
attrib -h -r -s autorun.inf
attrib -h -r -s bittorrent.exe
attrib -h -r -s sxs.exe
attrib -h -r -s copy.exe
attrib -h -r -s command.exe
attrib -h -r -s msvcr71.dll
attrib -h -r -s ie.exe
attrib -h -r -s copy.exe
attrib -h -r -s autorun.vbs
attrib -h -r -s WSscript.exe
del fooool.exe
del autorun.inf
del bittorrent.exe
del sxs.exe
del copy.exe
del command.exe
del ravmonlog
del msvcr71.dll
del ie.exe
del copy.exe
del autorun.vbs
del WSscript.exe
del winfile.exe
del secenekler.ini
NIRCMD emptybin
del C:\Docume~1\NB\Locals~1\Temp\*.*
del C:\Docume~1\NB\Locals~1\Tempor~1\*.*
del C:\Docume~1\NB\Cookies\*.*
ipconfig/release
ipconfig/flushdns
ipconfig/renew
@echo off
taskkill /f /IM explorer.exe
explorer.exe
cls
exit

Bu bat dosyasını kullanmanın zararı olur mu?
 

Ben Kenobi

Dekan
Katılım
6 Kasım 2011
Mesajlar
7,329
Reaksiyon puanı
3,156
Puanları
1,358
Kodlara baksam bile o dosyaların silinip silinmemesi gerektiğini bilemem.
O kadar bilgim yok.
Bunlara bence gerek yok çünkü programlar değişiyor.
Bir önceki firefox ile bir sonraki firefox'un bıraktığı kalıntılar aynı olmayabilir.
Bu değişime senin ayak uydurman zor olur.
BleachBit komitesi zaten bu değişimleri kontrol ediyor.

Kayıt temizleyici olarak Advanced SystemCare paralı versiyonunu öneririm.
Kayıt temizleme yaptıktan sonra kayıt defterini defrag yapman gerekebilir yoksa kardan çok zararı olabilir, program onu da kontrol ediyor gerekirse bilgisayar başlarken kullanıcı ekranı gelmeden önce kayıt defterini defrag yapıp tekrar başlatıyor.
Kayıt defteri denen gudubet Windows'un en ucube kısmıdır.
Bu sistem olmasaydı birçok şey daha güzel olabilirdi.
The Windows Registry – It seemed like a good idea at the time
 

Halktan Biri

Dekan
Emektar
Katılım
30 Ekim 2016
Mesajlar
9,401
Reaksiyon puanı
9,165
Puanları
293
bilgisayar başlarken kullanıcı ekranı gelmeden önce kayıt defterini defrag yapıp tekrar başlatıyor.
IObit Smart Defrag'ta böyle bir şey vardı. Açılışta defrag yapıyordu ve sanki açılış hızı daha kısa sürüyor gibiydi.
 

Ben Kenobi

Dekan
Katılım
6 Kasım 2011
Mesajlar
7,329
Reaksiyon puanı
3,156
Puanları
1,358
IOBit'te açılışta ntfs taşınmaz dosyalarına defrag yapıyor ama bunun içinde kayıt defteri var mı bilmiyorum.
UltimateDefrag bu konuda en iyisi, hem taşınmazları defrag yapıyor, hem kayıt defterini, hem de hangi taşınmazın hangi sektöre konacağını ayarlayabiliyor çünkü IOBit taşınmazları disk doldukça sonlara atıyor bu da performansı düşüren bir faktör ama UltimateDefrag paralı.
 
Üst