How do I specify C:\Program Files without a space in it for programs that can't handle spaces in file paths?

前端 未结 14 1325
星月不相逢
星月不相逢 2020-12-01 04:39

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,

相关标签:
14条回答
  • 2020-12-01 05:39

    There should be a way to use the full c:\program files path directly. Often, it involves encapulating the string in quotes. For instance, on the windows command line;

    c:\program files\Internet Explorer\iexplore.exe 
    

    will not start Internet Explorer, but

    "c:\program files\Internet Explorer\iexplore.exe" 
    

    will.

    0 讨论(0)
  • 2020-12-01 05:42

    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.

    0 讨论(0)
提交回复
热议问题