0

so i have the problem that i'm trying to call a java application via powershell that has spaces in the file path.

Following command doesn't work and doesn't return any error or similar:

Start-Process java -ArgumentList '-jar', 'C:Program Files/test.jar'

I can't seem to get it working and hope you guys have recommendations for me

Thanks in advance!

4
  • Possible duplicate of Spaces cause split in path with PowerShell Commented Jun 24, 2016 at 8:44
  • Not exactly, since i'm passing arguments and not trying to directly call a program with & "C:/Program Files/test.exe" Commented Jun 24, 2016 at 8:47
  • 1
    stackoverflow.com/questions/1673967/… is it better? Commented Jun 24, 2016 at 8:48
  • Also tried that but still doesn't work :-/ Commented Jun 24, 2016 at 8:50

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.