MDN may have intermittent access issues April 18 13:00 - April 19 01:00 UTC. See whistlepig.mozilla.org for all notifications.

mozilla
Your Search Results

    windowsGetShortName

    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 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
    }

    Document Tags and Contributors

    Contributors to this page: Sheppy, Fredchat, ethertank, trevorh, Rod Whiteley
    Last updated by: Sheppy,
    Hide Sidebar