Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 981 Bytes

File metadata and controls

16 lines (10 loc) · 981 Bytes

8dot3name.ps1

Script file (8dot3name.ps1) with implementation(s) on getting af short (8.3) name on a given Directory or File. The result is similar to what is given by dir /x.

Backlog

  • Add-Type can only add type once in a .NET AppDomain, that is in reality like a PowerShell session. It is not possible to programmatically remove custom type.
    Investigate if Add-Type can be avoided.
  • Function should take input on either DirectoryInfo or FileInfo type. Look into overload possibilities. Maybe using custom PowerShell class. Or ParameterSetName.
  • Validate parameter value; does object exist.

Link

Microsoft Docs: GetShortPathNameW function (fileapi.h)

Idera Community: Converting File Paths to 8.3 (Part 2)