Hey I have been trying to make a small program that runs a bit of CMD. The only problem was that the file location has quotation marks in it. I am unsure how to include these, since system(""C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --proxy-server=190.151.8.246:8080") will not work because of the quotes.
After lots of looking around, I found I could pass the quotes into a line using a stringstream like this
The only problem is I don't know how to run this through system or shellexecute. I can't find anything online that I can understand. Does anyone know of a way to do this?
I would really appreciate any help guys, I am completely out of ideas. All I have to do is run a cmd with quotations around the location, I just can't figure this out.