DIAdem Help

Property: ShortName for File

  • Updated2024-09-12
  • 1 minute(s) read

Property: ShortName for File

Specifies the short name of a file according to the 8.3 naming convention.

Object.ShortName
ObjectFile
Object with this property
Object.ShortNameString with read access

The following example returns the short name of a file:

Function FileShortName(sFile)
  Dim fso, oMyFile
  Set fso = CreateObject("Scripting.FileSystemObject")
  Set oMyFile = fso.GetFile(sFile)
  FileShortName = "Shortname: " & oMyFile.ShortName
End Function

Log in to get a better experience