Results 1 to 3 of 3

Thread: Batch file access to "standby" and "restart" features

  1. #1
    Join Date
    Nov 2008
    Location
    Australia
    Posts
    496

    Batch file access to "standby" and "restart" features

    I know I have asked this before, but I am really quite desperate: I want very much to simulate Slimm-GBPVR's "standby" function from a batch file. Every CLI I've used to enter standby either overrides Slimm's "delayed standby" trapping, or will not restart for recordings, or both. Slimm's works perfectly, but I have to do it manually with my mouse.

    Come on, genius community...there's got to be a way.

  2. #2
    Join Date
    Aug 2005
    Location
    Houston
    Posts
    4,796
    any 'user intiated' suspend command will go straight to suspend...it's MS fault....
    but to do it myself, i just add the cmds i want to do before suspend, in batch file before the suspend cmd...
    i believe you can do the normal windows supend from batch file like:
    Code:
    powercfg -h off
    ping 1.1.1.1 -n 1
    %windir%\system32\rundll32.exe PowrProf SetSuspendState
    powercfg -h on
    [you have to temporarily turn off hibernate mode then pause a sec., then issue cmd, then turn it back on real quick before suspend happens..]

    so just run your needed cmds before running the suspend cmd in the batch file you kick off to start suspend mode...make sure it'll wait for you processes to finish before continuing..
    [start /w "" cmds]

    hope that helps a bit..
    Last edited by pBS; 2009-04-07 at 12:32 AM.
    Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie

  3. #3
    Join Date
    Nov 2008
    Location
    Australia
    Posts
    496
    Quote Originally Posted by pBS View Post
    any 'user intiated' suspend command will go straight to suspend...it's MS fault....
    i believe you can do the normal windows supend from batch file like:
    "rundll32.exe powrprof.dll,SetSuspendState FALSE,FALSE,FALSE"
    Unfortunately, using the dll this way causes a problem. I can't remember which one: it either suspends regardless of whether there is a recording in progress (Slimm-GBPVR does not intercept it), or it suspends so thoroughly that the machine does not wake up for the next recording.

    One problem or the other occurs with every program I've tried: nircmd, sleep.exe, etc.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •