Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Start-Process not working with blank spaces in path

$
0
0

Hi,

I've actually a problem with the "Start-Process" command , used to run an exe file located in a path containing blank spaces.

 

$myPath = "C:\Temp\My folder with spaces\setup.exe"

Start-Process $myPath -ArgumentList ....

I resolved the same problem for the arguments by adding double-quotes, but it doesn't seem to be working for the command.

-ArgumentList "/extract:""$FileFolder\$FileLanguage""

If someone have the solution ... I tried many things, with no luck !

I add a precision : the path shown in my example is built, like that :

"$FileFolder\$FileLanguage\setup.exe"



Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>