În căutarea unei soluții mai rapide de restart am dat peste un tutorial foarte interesant scris de domnul Cosmin Tătaru de la windowsfaralimite ,această soluție ne scutește de a da atât de multe click-uri precum cere Windows 8.
Pașii sunt urmatorii:
- Deschide Notepad,sau alt editor de text
- În editorul de text copiem următorul cod:
set WshShell = WScript.CreateObject(„WScript.Shell”) strStartMenu = WshShell.SpecialFolders(„StartMenu”) set oShellLink = WshShell.CreateShortcut(strStartMenu & „Shutdown.lnk”) oShellLink.TargetPath = „%systemroot%System32shutdown.exe” oShellLink.Arguments = „-s -t 0” oShellLink.WindowStyle = 1 oShellLink.IconLocation = „%systemroot%System32shell32.dll,27” oShellLink.Description = „Shutdown Computer (Power Off)” oShellLink.WorkingDirectory = „%systemroot%System32” oShellLink.Save Set oShellLink = Nothing set oShellLink = WshShell.CreateShortcut(strStartMenu & „Log Off.lnk”) oShellLink.TargetPath = „%systemroot%System32shutdown.exe” oShellLink.Arguments = „-l” oShellLink.WindowStyle = 1 oShellLink.IconLocation = „%systemroot%System32shell32.dll,44” oShellLink.Description = „Log Off (Switch User)” oShellLink.WorkingDirectory = „%systemroot%System32” oShellLink.Save Set oShellLink = Nothing set oShellLink = WshShell.CreateShortcut(strStartMenu & „Restart.lnk”) oShellLink.TargetPath = „%systemroot%System32shutdown.exe” oShellLink.Arguments = „-r -t 0” oShellLink.WindowStyle = 1 oShellLink.IconLocation = „%systemroot%System32shell32.dll,176” oShellLink.Description = „Restart Computer (Reboot)” oShellLink.WorkingDirectory = „%systemroot%System32” oShellLink.Save Set oShellLink = Nothing Wscript.Echo
- Salvăm fișierul sub forma ”Shortcuts.vbs” pe Desktop
- Executăm dublu click pe scriptul salvat iar acesta va crea automat butoane de Shut Down,Restart și Log Off,acestea vor fi găsite în meniul Start din interfața Metro(Modern UI).