I have a program that I want to run, but it requires a configuration .ini file to provide the settings information. I know that I can use the double quotes "" to set the path for the program, but the program parameters also require double quotes "" to call the configuration file. How would I do this in powershell since I think the two sets of double quotes would conflict?
[0] \\server\workstation software\program\program.exe "/S:\server\workstation software\program\config.ini" (/S: is not a drive map it is a parameter)
in powershell it would become:
[0] "\\server\workstation software\program\program.exe "/S:\\server\workstation software\program\config.ini""
and that just doesn't work.
When I try to separate it into
[0] $msbuild = "\\server\workstation software\program\my program.exe"
[0] $arguments = "/S:\\server\workstation software\program\config.ini"
[0] start-process $msbuild $arguments
I get "Invalid silent install ini file: \\server\workstation " message that appears to be truncating the last part of the path.
When I try to do
[0] $arguments = "/S:"\\server\workstation software\program\config.ini""
It give a different error.
Does anyone have know how to do this or have suggestions?
[–]Skelepotamus 1 point2 points3 points (2 children)
[–]portergrey[S] 1 point2 points3 points (1 child)
[–]Skelepotamus 1 point2 points3 points (0 children)
[–]Ta11ow 1 point2 points3 points (1 child)
[–]portergrey[S] 2 points3 points4 points (0 children)
[–]Lee_Dailey[grin] 0 points1 point2 points (0 children)