B
bcastaing
My Windows service includes the following lines:
string Arguments3 = @"%OvAgentDir%\bin\OpC\cmds\ref-ovo-services.vbs
ServiceApplicatif ServiceOVO";
string expandedArguments3 =
Environment.ExpandEnvironmentVariables(Arguments3);
this.process3.StartInfo.Arguments = expandedArguments3;
this.process3.StartInfo.FileName = "cscript.exe";
ref-ovo-service.vbs runs with two arguments: ServiceApplicatif (windows
service) and ServiceOVO. Service applicatif can have a space in the
name.
My problem is to interger quotation marks on both sides of
ServiceApplicatif in the case of my Service Applicatif has a space.
\" on both sides of the command in this.process3.StartInfo.FileName =
"\"cscript.exe\""; works all right but not in string Arguments3
Thanks for any advices.
Bruno
string Arguments3 = @"%OvAgentDir%\bin\OpC\cmds\ref-ovo-services.vbs
ServiceApplicatif ServiceOVO";
string expandedArguments3 =
Environment.ExpandEnvironmentVariables(Arguments3);
this.process3.StartInfo.Arguments = expandedArguments3;
this.process3.StartInfo.FileName = "cscript.exe";
ref-ovo-service.vbs runs with two arguments: ServiceApplicatif (windows
service) and ServiceOVO. Service applicatif can have a space in the
name.
My problem is to interger quotation marks on both sides of
ServiceApplicatif in the case of my Service Applicatif has a space.
\" on both sides of the command in this.process3.StartInfo.FileName =
"\"cscript.exe\""; works all right but not in string Arguments3
Thanks for any advices.
Bruno