seriousstas, исходник RunExplorer.au3:
PHP код:
#NoTrayIcon
#include <MsgBoxConstants.au3>
If (@OSArch = "X86") Then
$sKey = "HKLM"
Else
$sKey = "HKLM64"
EndIf
$sKey &= "\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon"
If (Not ProcessExists("explorer.exe")) Then
$sShell = RegRead($sKey, "Shell")
RegWrite($sKey, "Shell", "REG_SZ", "explorer.exe")
If (@error) Then
MsgBox($MB_ICONERROR, "RunExplorer", "Ошибка записи в реестр, код: " & @error)
EndIf
Sleep(500)
Run(@WindowsDir & "\explorer.exe")
Sleep(3000)
RegWrite($sKey, "Shell", "REG_SZ", $sShell)
EndIf