Set up a shortcut to command Extended Standby

Solved
Hello,
I just installed the Sleep Mode on my computer;
I would like to create a Shortcut in the Taskbar to control this Sleep Mode.
When I try to copy the link (C:\Windows\System32\rundll32.exe powerprof.dll SetSuspendState 0.1.0) that allows me to create this shortcut, the response is:
"The file C:\Windows\System32\rundll32.exe is not found"
I had already executed this command in the past without any problem.
How can I find this rundll32.exe file?
Thank you for your help.

Configuration: Windows / Firefox 84.0

4 answers

  1. Contributor
    Hello,

    Try to create the shortcut with this command.
    Right-click on the Desktop =►New Shortcut
    Copy/paste:

    C:\Windows\System32\rundll32.exe powrprof.dll, SetSuspendState 0,1,0



    Then =►Next
    Name it =►Hibernate
    Click on =►Finish


    ==► change the icon

    Right-click on the shortcut =►Pin to taskbar

    Error Info:
    Your command below is not correct:

    C:\Windows\Systeme32\rundll32.exe powerprof.dll SetSuspendState 0.1.0

    The correct command

    C:\Windows\System32\rundll32.exe powrprof.dll, SetSuspendState 0,1,0

    As you can see it's a matter of comma at the end --►0.1.0 = 0,1,0

    See you soon

    --
    pistouri
    2
    1. Hello.

      I just tried it and it works perfectly with ==>

      rundll32.exe powrprof.dll,SetSuspendState 0,1,0

      On Windows 10 Pro version 20H2 (2009)

      --
      " Patience leads to success, haste leads to nothing "
      1
      1. Contributor
        Hi Jojo,

        It's that damn comma that's causing trouble in the command.
        0
      2. @pistouriHello Pistou.

        As we can see, it really doesn't take much for things to go wrong!

        Happy end-of-year celebrations... Best regards.
        0
      3. Contributor
        @JojolaguitareWhat does a comma say to a period?

        Answer:
        Stop interrupting me or I'll put you in parentheses.

        Happy holidays to you and everyone.
        0
    2. Thank you all for your responses...
      It works!!!
      And as Jojo rightly says, "it's that damn comma that causes chaos"
      I had already used this command in the past but with periods and it worked!
      Why did they put commas instead? A mystery!!!
      Anyway, my problem is solved.
      I'm marking it as Resolved
      Thanks again to everyone and... certainly see you soon.
      0
      1. Contributor
        And as Jojo rightly says, "it's that damn comma that causes trouble"


        No, it's me who tells you so twice.
        [Give to Caesar what belongs to Caesar]

        Good continuation and have a nice day.

        0