Search code examples
windowsescapingwhitespacefilenameslong-filenames

Is it possible to use special characters to represent a space in Windows?


We are using a proprietary application for inventory management and have discovered this application is unable to interpret spaces in file paths. For example:

C:\Google Drive\Invoices

Does not work, whereas

C:\Google\Invoices

does work.

Is there a special way to represent a space in Windows much like a URL string can use %20? For example C:\Google%20\Drive\Invoices.


Solution

  • Use 8.3 short name.

    Try dir /x c:\

    Google Drive should have a short name, probably like GOOGLE~1

    Then you can use C:\GOOGLE~1\Invoices