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

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

    You can use the following methods to specify C:\Program Files without a space in it for programs that can't handle spaces in file paths:

    'Path to Continuum Reports Subdirectory - Note use DOS equivalent (no spaces)
    RepPath = "c:\progra~1\continuum_reports\" or
    RepPath = C:\Program Files\Continuum_Reports  'si es para 64 bits.
    
    ' Path to Continuum Reports Subdirectory - Note use DOS equivalent (no spaces)
    RepPath = "c:\progra~2\continuum_reports\" 'or
    RepPath = C:\Program Files (x86)\Continuum_Reports  'si es para 32 bits.
    

提交回复
热议问题