Kod: Tümünü seç
Option Explicit
Dim objShell, objFSO, explorerPath, file
Set objShell = CreateObject("WScript.Shell")
Set objFSO = CreateObject("Scripting.FileSystemObject")
explorerPath = objShell.ExpandEnvironmentStrings("%localappdata%\Microsoft\Windows\Explorer")
If objFSO.FolderExists(explorerPath) Then
' Explorer'ı durdur
objShell.Run "taskkill /f /im explorer.exe", 0, True
For Each file In objFSO.GetFolder(explorerPath).Files
If LCase(file.Name) Like "iconcache*" Then
On Error Resume Next
file.Delete True
On Error GoTo 0
End If
Next
' Explorer'ı yeniden başlat
objShell.Run "explorer.exe", 0, False
MsgBox "İkon önbelleği temizlendi ve Explorer yeniden başlatıldı.", vbInformation, "Tamamlandı"
Else
MsgBox "Explorer klasörü bulunamadı.", vbExclamation, "Hata"
End If
Set objFSO = Nothing
Set objShell = NothingOturumu kapatmaz
Explorer’ı yeniden başlatır
Kilitli dosya problemini azaltır
Daha kullanıcı dostudur
Önceki sürümde kullanıcıyı oturum dışına şutluyordum....
https://www.yazilimadasi.com/viewtopic.php?t=931


