1.

Solve : .vbs script help?

Answer»

So I need a script to disable the shutdown button on my laptop. Well I know it's possible to do in .vbs but I GOT no idea how to start. Just some start help would be MUCH obliged. Why don't you just disable it in Power Options? Why do you want to do this? Are you SURE it's your laptop you want to do this on?

How would I be uncertain of it being my laptop or not?
Anyways I tried to check in power options before posting.
Just to be sure that we are on the same page the button I am talking about is the physical one on the exterior of the laptop.
My problem being I don't know what input the button gives or how to block it.In Windows there is an option in Power Options - "What to do when power button is pressed" -

Do Nothing
Sleep
Hibernate
Shut Down


Quote

Just to be sure that we are on the same page the button I am talking about is the physical one on the exterior of the laptop.

I know what page I am on.

In Windows 7/Vista there is an option in Control Panel Power Options - "Choose what the power BUTTONS do" - in XP it's in the Advanced tab - "When I press the power button:"
the powercfg utility MIGHT provide the functionality you seek.Okay Sry Salmon I completely misunderstood
It's working now thank you.


Discussion

No Comment Found