C:\Progra~2 not working in OEM Version of Windows 8
14,961
Use a batch built in Constant: %ProgramFiles%. It also works on non-englisch windows Version, which your ~2 does not.
Author by
user1465461
Updated on June 14, 2022Comments
-
user1465461 almost 2 years
I am working on creating a batch file in Windows 8, which won't accept
"C:\Program files"
in its body because the space between Program and files gives an error. So, I used"C:\Progra~2"
.I want to access
Program files (x86)
.I have two Windows 8 PC's: Windows 8 PRO and Windows 8 OEM.
When I type
"C:\Progra~2"
from File Explorer to accessprogram files (x86)
it opens successfully in Windows 8 PRO.But when I do the same in Windows 8 OEM, it says
Windows cannot find C:\Progra~2.
I am not sure whether this is an issue with the PRO and OEM versions.
Can anyone help me find the solution?
-
user1465461 almost 11 yearsyes i have program files and program files (x86) in both machines. Even C:\Program-1 is not working in OEM pc
-
foxidrive almost 11 yearsYou can do
DIR c:\ /ad /x
to see what short filename the folder has.