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

Help: Rainmeter Skins • Sending powershell commands with curly brackets issue

$
0
0
Greetings! :)

I am trying to create a ping -skin using powershell, and a powershell DLL.

I command it with "ping -t 8.8.8.8", it does that without any problems. As soon as i try to send more complex command with curly brackets, it runs to an error all the time.
This is the code i try to send to powershell:

Code:

[!CommandMeasure mCmd "ping -t 8.8.8.8 | ForEach {"{0} - {1}" -f (Get-Date),$_}"]
Rainmeter runs out with an error: "!CommandMeasure: Skin "{0}" does not exist"

So i suspect that commanding a line with curly brackets inside makes an issue at some point. I just try to add timestamp to every ping lines.
This code works when i input it directly in PowerShell "ping -t 8.8.8.8 | ForEach {"{0} - {1}" -f (Get-Date),$_}"

Statistics: Posted by rbriddickk84 — 30 minutes ago — Replies 1 — Views 12



Viewing all articles
Browse latest Browse all 528

Trending Articles