Quantcast
Viewing all articles
Browse latest Browse all 673

Help with variables

Hi,

I'm a newbe and have some trouble with setting a variable.

I have a measure, which gets with powershell the guid of a physical network adapter:

Code:

[Variables]GUID=x[MeasureGetNICGUID]Measure=PluginPlugin=RunCommandProgram=PowerShellParameter=((Get-WmiObject Win32_NetworkAdapter) | Where-Object {$_.Name -eq 'Microsoft Hyper-V Network Adapter'}).GUIDOutputType=ANSIOutputFile=C:\Users\Administrator\Documents\Rainmeter\Skins\test.txtdynamicvariables=1UpdateDivider=#Update15s#OnFinishAction=[!SetVariable GUID [MeasureGetNICGUID]]

In the output file the GUID is like {8FE2DF4C-6D24-4394-AA17-99DCEA20BA98}

In another measure I need the GUID to complete a registry key:

Code:

[MeasureLAN]Measure = RegistryRegHKey = HKEY_LOCAL_MACHINERegKey = SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\#GUID#RegValue = DhcpIPAddressdynamicvariables=1UpdateDivider=#Update15s#
This does not work, cause the variable was not set.
If I set the variable like GUID={8FE2DF4C-6D24-4394-AA17-99DCEA20BA98} then the [MeasureLAN] works correct.

What is wrong, could you please give me a hint?!

Thx a lot !!!!

Statistics: Posted by Matthias1806 — Yesterday, 10:48 am — Replies 14 — Views 156



Viewing all articles
Browse latest Browse all 673

Trending Articles