← Back to context Comment by 323 4 years ago Well, on my disk PROGRA~1 is "Program Files" and PROGRA~2 is "Program Files (x86)", so still works :) 11 comments 323 Reply floatingatoll 4 years ago That order is not guaranteed consistent across installations, however. marginalia_nu 4 years ago I wonder if code to this effect has ever been written before for (int i = 1; i < INT_MAX; i++) { if (dirExists("C:\\PROGRA~%d\\ProgramName", i)) { gmfawcett 4 years ago And that, children, is when marginalia_nu unlocked the seventh circle of the inferno. Tomorrow we'll read the story of how our new demon overlords forced us all back to Windows 3.1. 4 replies → floatingatoll 4 years ago For whatever it’s worth, this is a terrible idea, for so many different reasons:https://web.archive.org/web/20100107184218/http://blogs.msdn...And so, yes, I’m certain someone must have done it, because it’s clearly bad idea jeans and so Murphy’s Law says it must exist. benibela 4 years ago Can that work for i > 9 ? 1 reply → TowerTall 4 years ago And on mine (Windows 11) "PROGRA~3" is "ProgramData"
floatingatoll 4 years ago That order is not guaranteed consistent across installations, however. marginalia_nu 4 years ago I wonder if code to this effect has ever been written before for (int i = 1; i < INT_MAX; i++) { if (dirExists("C:\\PROGRA~%d\\ProgramName", i)) { gmfawcett 4 years ago And that, children, is when marginalia_nu unlocked the seventh circle of the inferno. Tomorrow we'll read the story of how our new demon overlords forced us all back to Windows 3.1. 4 replies → floatingatoll 4 years ago For whatever it’s worth, this is a terrible idea, for so many different reasons:https://web.archive.org/web/20100107184218/http://blogs.msdn...And so, yes, I’m certain someone must have done it, because it’s clearly bad idea jeans and so Murphy’s Law says it must exist. benibela 4 years ago Can that work for i > 9 ? 1 reply →
marginalia_nu 4 years ago I wonder if code to this effect has ever been written before for (int i = 1; i < INT_MAX; i++) { if (dirExists("C:\\PROGRA~%d\\ProgramName", i)) { gmfawcett 4 years ago And that, children, is when marginalia_nu unlocked the seventh circle of the inferno. Tomorrow we'll read the story of how our new demon overlords forced us all back to Windows 3.1. 4 replies → floatingatoll 4 years ago For whatever it’s worth, this is a terrible idea, for so many different reasons:https://web.archive.org/web/20100107184218/http://blogs.msdn...And so, yes, I’m certain someone must have done it, because it’s clearly bad idea jeans and so Murphy’s Law says it must exist. benibela 4 years ago Can that work for i > 9 ? 1 reply →
gmfawcett 4 years ago And that, children, is when marginalia_nu unlocked the seventh circle of the inferno. Tomorrow we'll read the story of how our new demon overlords forced us all back to Windows 3.1. 4 replies →
floatingatoll 4 years ago For whatever it’s worth, this is a terrible idea, for so many different reasons:https://web.archive.org/web/20100107184218/http://blogs.msdn...And so, yes, I’m certain someone must have done it, because it’s clearly bad idea jeans and so Murphy’s Law says it must exist.
That order is not guaranteed consistent across installations, however.
I wonder if code to this effect has ever been written before
And that, children, is when marginalia_nu unlocked the seventh circle of the inferno. Tomorrow we'll read the story of how our new demon overlords forced us all back to Windows 3.1.
4 replies →
For whatever it’s worth, this is a terrible idea, for so many different reasons:
https://web.archive.org/web/20100107184218/http://blogs.msdn...
And so, yes, I’m certain someone must have done it, because it’s clearly bad idea jeans and so Murphy’s Law says it must exist.
Can that work for i > 9 ?
1 reply →
And on mine (Windows 11) "PROGRA~3" is "ProgramData"