sdpsc
Technical User
- Feb 10, 2001
- 76
When running a batch file, how do you get it out of 8-character maximum mode?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
?GetShortPath(GETFILE())
****************************************
Function GetShortPath(tcFileName)
****************************************
Local lnRes, lcPath
Declare Integer GetShortPathNameA In Win32API As GetShortPathName String, String, Integer
lcPath = Replicate(Chr(32), 165) + Chr(0)
lnRes= GetShortPathName(tcFileName, @lcPath, 164)
Clear Dlls GetShortPathName
Return (Left(lcPath, lnRes))
ENDFUNC &&GetShortPath
I'm wondering how to do things with files that have more than eight characters in their filenames.