Put your logo here!

TOC PREV NEXT



windowsGetShortName

Returns a path that conforms to the Windows 8.3 file naming convention.

Method of

 File

Syntax

 string windowsGetShortName( 
     Object localDirSpec )

Parameters

The windowsRegisterServer method has the following parameters:

 localDirSpec
A FileSpecObject representing 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
TOC PREV NEXT