Continuiamo a parlare di Windows 8 e a mostrarvi qualche utility per migliorare la vostra esperienza d’uso con il nuovo OS di mamma Microsoft. Oggi andiamo a vedere come aggiungere nella Start Screen i tiles delle voce di Spegnimento, Riavvio e Disconnessione del computer.
Prima di tutto aprite il Blocco Note e copiate/incollate quanto segue:
set WshShell = WScript.CreateObject(“WScript.Shell”)
strStartMenu = WshShell.SpecialFolders(“StartMenu”)
set oShellLink = WshShell.CreateShortcut(strStartMenu & “\Shutdown.lnk”)
oShellLink.TargetPath = “%systemroot%\System32\shutdown.exe”
oShellLink.Arguments = “-s -t 0”
oShellLink.WindowStyle = 1
oShellLink.IconLocation = “%systemroot%\System32\shell32.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%\System32\shutdown.exe”
oShellLink.Arguments = “-l”
oShellLink.WindowStyle = 1
oShellLink.IconLocation = “%systemroot%\System32\shell32.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%\System32\shutdown.exe”
oShellLink.Arguments = “-r -t 0”
oShellLink.WindowStyle = 1
oShellLink.IconLocation = “%systemroot%\System32\shell32.dll,176”
oShellLink.Description = “Restart Computer (Reboot)”
oShellLink.WorkingDirectory = “%systemroot%\System32\”
oShellLink.Save
Set oShellLink = Nothing
Wscript.Echo “Created Shutdown, Restart and Log Off buttons”
Ora salvate il tutto con estensione .vbs (ad esempio utility.vbs) e fate doppio click sul file appena creato. Nella Start Screen dovrebbero ora essere apparsi i vari pulsanti di spegnimento, riavvio e disconnessione. Se volete, cliccando col il tasto destro del mouse su questi tiles, potete anche aggiungere i collegamenti alla barra delle applicazioni, in modo tale da averli a portata anche nell’interfaccia desktop.