Jump to content

Tutorial Adaugare Butoane Shut Down, Restart Si Log Off In Ecranul Start Din Windows 8


gaby

Recommended Posts

Daca ati testat sau utilizati in prezent Windows 8, ati observat faptul ca pentru a opri calculatorul, sau pentru a-i da restart, va trebui sa efectuati mai multe miscari decat in sisteme de operare mai vechi (Windows 7, Vista sau XP), si asta din cauza eliminarii butonului de Start.

Ei bine, se pare ca intr-un final, chiar si cei de la Microsoft realizeaza greseala, si ne pun la dispozitie un mic script cu care putem crea foarte usor un set de butoane cu functiile care ne intereseaza pe noul ecran de Start al lui Windows 8:

windows8powerbuttons.png

Pentru a obtine cele trei butoane, tot ce trebuie sa faceti este sa copiati codurile de mai jos intr-un document Notepad pe care va trebui sa-l salvam apoi sub forma de: nume.vbs

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 "S-au creat butoane pentru Shutdown, Restart si Log Off in Ecranul Start, la limita extrema dreapta. Le puteti glisa in primele coloane din Ecranul Start pentru a avea comenzile la indemana."[/code]

Odata ce ati salvat fisierul pe Desktop (sau oriunde in alta parte doriti) ca de exemplu: [b]buttons.vbs[/b], il rulati (dati dublu click pe el), iar butoanele vor fi create automat in ecranul de Start, la final, in extrema dreapta.

Te-ai inregistrat? Ne-ar placea sa te prezinti.

Cum pot sustine forumul?
Cumpara de la eMag folosind acest link.
--------------------
oG2BN9d.gifse1WdXd.gifQG6MtmI.gifRHYjDzD.gifG5p1wui.gif

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.