帮助创建服务,转义binPath

| 我想创建一个服务,并且需要在binPath中转义双引号。路径应如下所示:C:\\ path_to \\ service_executable.exe -i \“ path_to_config_file.conf \” 我是否只是将双引号加倍?即。
binPath= \"C:\\path_to\\service_executable.exe -i \"\"c:\\path_to\\config_file.conf\"\"\"
    
已邀请:
EXE路径之后的内容被视为启动参数(-i \“ c:\\ path_to \\ config_file.conf \”)。它们在单独的字段中指定。 如果使用Services.msc,则可以在“开始参数”编辑框中添加它。 如果使用MSI安装服务,则可以使用ServiceInstall表中的\“ Arguments \”列。     

要回复问题请先登录注册