windowsGetShortName
Returns a path that conforms to the Windows 8.3 file naming convention.
Method of
FileSyntax
string windowsGetShortName( Object localDirSpec )Parameters
The
windowsRegisterServermethod has the following parameters:
localDirSpecA 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 }
| Netscape Communications devedge.netscape.com |