14
4
I want to include the path to a library in the Program Files directory, but I need to do this without spaces. I know that Windows uses a convention that shortens names like Program Files
becomes PROGRA~1
. How can I find these shortened names for an arbitrary directory?
(Apologies if this has already been asked but I couldn't find it.)
Can't you just use quotation marks so you can leave the spaces in place? e.g., "C:\Program Files" – Uninspired – 2010-12-02T00:56:46.507