Hi,
I continue working on my script and now is more powerfull :) !
I have a question about this section
chomp (my $OVINSTDIR = `echo %OvInstallDir%`);
if(-e $OVINSTDIR.'\bin\win64\opcmon.exe'){
my $COMMAND = $OVINSTDIR.'\bin\win64\opcmon.ex
+e';
$OPCMON="$COMMAND";
qx[$OPCMON];
}
when i execute the command $OVINSTDIR.'\bin\win64\opcmon.exe' i got error:
'C:\Program' is not recognized as an internal or external command,
because variable $OVINSTDIR contains space (C:\Program Files\HP\HP BTO Software\)
How can i manage this behavior ?
Thanks,
Fabrizio | [reply] [d/l] |
Hi,
I solve using the character \" inside the variable.
$OPCMON="\"$COMMAND\"";
Regards,
Fabrizio
| [reply] |