Computer Hope

Microsoft => Microsoft Windows => Windows Vista and 7 => Topic started by: .:astroboy:. on January 17, 2012, 08:41:25 AM

Title: Batch file for hibernate Windows 7
Post by: .:astroboy:. on January 17, 2012, 08:41:25 AM
Hi I am operating Win 7 64bit

I want to hibernate my pc by executing a single file.

I tried creating shortcut but that didnt work for some reason.Dont know why.
Code: [Select]
    C:\Windows\System32\rundll32.exe powrprof.dll, SetSuspendState 0,1,0

I was wondering if .bat file can be a solution?

I dont know how to code batch file.

Can anyone help me ?
Thanks in advance


Title: Re: Batch file for hibernate Windows 7
Post by: Salmon Trout on January 17, 2012, 11:52:46 AM
Try it in a batch file. All you need is what you posted.

Title: Re: Batch file for hibernate Windows 7
Post by: .:astroboy:. on January 17, 2012, 10:13:22 PM
sorry i thought its a programming thing