Hi everyone, simple question here. I'm using powershell to automate some script calling, anyways in a function I want it to run a command
foocommand load C:\file\system\$prod_$sys\bla.out
and
foocommand load C:\file\system\$prod_32\bla.out
problem is, in these cases the shell look for a variable named $prod_ and one named $prod_32. How can I get the shell to recognize only $prod is the name? in perl I would just do
system("foocommand load C:\file\system\$prod"."_32\bla.out");
Thanks
foocommand load C:\file\system\$prod_$sys\bla.out
and
foocommand load C:\file\system\$prod_32\bla.out
problem is, in these cases the shell look for a variable named $prod_ and one named $prod_32. How can I get the shell to recognize only $prod is the name? in perl I would just do
system("foocommand load C:\file\system\$prod"."_32\bla.out");
Thanks