Summary
Returns a path that conforms to the Windows 8.3 file naming convention.
Method of
File object
Syntax
string windowsGetShortName( Object localDirSpec )
Parameters
The windowsRegisterServer method has the following parameter:
-
localDirSpec -
A
FileSpecObjectrepresenting a directory obtained by getComponentFolder or getFolder.
Returns
A string with the windows shortname. If the path already conforms to 8.3, the return value is NULL.
Example
fLongFilePath = getFolder(fProgram, "LongFileName.File");
sShortFilePath = File.windowsGetShortName(fLongFilePath);
if(sShortFilePath) {
// do something
}
Document Tags and Contributors
Last updated by:
Sheppy,