View Single Post
Old 01-09-2008   #1 (permalink)
Chris


 
 

Command & variable substitution

Hello I have the following problem while creating a script which
contains the following line:

Script line:
get-wmiobject -class $strWMIClassName

Error description:
At xxx 1:74 char:15
+ get-wmiobject <<<< -class $strWMIClassName

As you can see the var is not substituted. I have tried all the ways I
do know from unix shells and so on how to substitute line $($var), `
$var`, ${var}....

Has anyone of you an idea how to solve this problem?

Thanks

Chris
My System SpecsSystem Spec