A configuration file needs position of another file,
but that file is located in \"C:\\Program Files\",
and the path with space in it is not recognized,
No.
Sometimes you can quote the filename.
"C:\Program Files\Something"
Some programs will tolerate the quotes. Since you didn't provide any specific program, it's impossible to tell if quotes will work for you.