I have a variable like this
\"Folder With Spaces/filename.ext\"
When I pass it to my program via PHP\'s system command, arguments are separ
You may want to try escapeshellcmd(), like this:
$path = escapeshellcmd("Folder With Spaces/filename.ext"); system("batch.bat \"$path\"");