I am writing a program to automate an .exe file that takes file paths as arguments.
Lets call this file we want to automatically call scale.exe
The Strings scalarPath, inputPath, and outputPath are all made using the function sketchPath()
My program is calls scale.exe like this:
launch(scalarPath + "scale.exe" + inputPath + " " + outputPath);
.
The issue is sketchPath() can return a result with spaces, for example:
C:\Program Files\example
The command prompt interprets said space as the end of an argument, leading to an error
How do I make command prompt interpret the full path, instead of splitting at a space?