Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 323

Running multiple commands

$
0
0
Hello,

I'm trying to run these 2 commands back to back (see below). When I test each command separately, they do work. But if I put them together, only the first command gets run. Can someone help?

The commands:
"C:\Program Files\Dell\Dell Display Manager 2\ddm.exe" /WritePower off
"shutdown.exe -s -t 10"

And here is the skin:

Code:

[Rainmeter]Author=mpursesBackgroundMode=3BackgroundMargins=0,0,0,0Group=AllNoWeather | Utilities2 | Settings | AllNoVisualizerContextTitle="#Utilities#..."ContextAction=[!ActivateConfig "#ROOTCONFIG#\Settings" "System-Utilities-Settings.ini"][Metadata]Name=Sonder - PowerInformation=Shutdown your computer via this button.Version=22.1.0License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0[Variables];font size@include=#@#Variables.inc;@include2=#@#Power\Styles-Power#BGStyle#.inc;@IncludeLanguage=#@#Language\Settings\#Language#.inc;Scale=#UtilitiesScale2#;--------------------------------;LockComputer=rundll32.exe user32.dll LockWorkStation;Logoff=logoff.exe;Restart=shutdown.exe -r -t 00;Shutdown=shutdown.exe -s -t 00;Sleep=powershell.exe -C "$m='[DllImport(\"Powrprof.dll\",SetLastError=true)]static extern bool SetSuspendState(bool hibernate,bool forceCritical,bool disableWakeEvent);public static void PowerSleep(){SetSuspendState(false,false,false); }';add-type -name Import -member $m -namespace Dll; [Dll.Import]::PowerSleep();";NOT RECOMENDED:;Sleep=rundll32.exe PowrProf.dll,SetSuspendState 0,1,0;Sleep=rundll32.exe PowrProf.dll,SetSuspendState Sleep[Background]Meter=IMAGESolidColor=0,0,0,1X=0Y=0W=40H=40[PowerIcon]Meter=IMAGEImageName=#@#Images\Power40.png;X=(#Scale#*16);Y=(#Scale#*16);W=(#Scale#*18);H=(#Scale#*18);AntiAlias=1ImageTint=#PowerIconColor#MouseOverAction=[!SetOption "#CURRENTSECTION#" ImageTint #PowerIconColorHover#] [!Update]MouseLeaveAction=[!SetOption "#CURRENTSECTION#" ImageTint #PowerIconColor#] [!Update]LeftMouseUpAction=["C:\Program Files\Dell\Dell Display Manager 2\ddm.exe" /WritePower off]["shutdown.exe -s -t 10"];--------------------------------

Statistics: Posted by teiji — Today, 12:13 am — Replies 0 — Views 19



Viewing all articles
Browse latest Browse all 323

Trending Articles