FileUtils.GetShortPath

Returns a short form Windows path (using ~8 char segment lengths) that can help with long filenames.

public static string GetShortPath(string path)

Return Value

Shortened 8.3 syntax or null on failure

Parameters

path
Long Path syntax

Remarks

IMPORTANT: File has to exist when this function is called otherwise null is returned.

Path has to be fully qualified (no relative paths)

Max shortened file size is MAX_PATH (260) characters


See also:

Class FileUtils

© West Wind Technologies, 1996-2024 • Updated: 06/29/24
Comment or report problem with topic