GetShortPathName
say SysGetShortPathName("C:\Program Files") -- C:\PROGRA~1 say SysGetShortPathName("\windows\explorer.exe") -- \windows\explorer.exe