I have a touch button in my laptop which I can configure what app it will open after touching it.
I edit a path to program in registry. When there is some .exe file (i.e. notepad.exe) everything works fine. But when I'm trying to put "rundll32.exe" with parameters to sleep windows it doesn't want to work. I put the following line:
rundll32.exe powrprof.dll,SetSuspendState Sleep
I checked another exe file with parameter"
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --incognito
And it is working. But how to run rundll32.exe with these parameters? In Command Prompt I put the above command after executing computer goes to standby mode so I assume the parameters are correct. The problem is how to execute this command from registry (by touching button). Maybe there's a special syntax for registry commands that I'm not aware of