The Computer Oracle

Windows path without spaces (with ~1)?

--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Beneath the City Looping

--

Chapters
00:00 Windows Path Without Spaces (With ~1)?
00:26 Accepted Answer Score 31
00:35 Answer 2 Score 1
00:45 Answer 3 Score 1
01:03 Thank you

--

Full question
https://superuser.com/questions/179449/w...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#windows #windowsxp #path

#avk47



ACCEPTED ANSWER

Score 31


You can use for each folder:

DIR /X



ANSWER 2

Score 1


in cmd, go to required directory and type dir/x to see the shortened name for your required folder




ANSWER 3

Score 1


There is a better way to reference the Program Files folder : use the %PROGRAMFILES% variable. And there is no spaces in it :).
For instance : %PROGRAMFILES%\MyLib\MyLib.dll