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

前端 未结 14 1420
星月不相逢
星月不相逢 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.

提交回复
热议问题