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

前端 未结 14 1422
星月不相逢
星月不相逢 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:28

    Use the following notations:

    • For "C:\Program Files", use "C:\PROGRA~1"
    • For "C:\Program Files (x86)", use "C:\PROGRA~2"

    Thanks @lit for your ideal answer in below comment:

    Use the environment variables %ProgramFiles% and %ProgramFiles(x86)%

    :

提交回复
热议问题