The usage of the VBS property ShortName
This article mainly introduces "the usage of VBS attribute ShortName". In daily operation, I believe many people have doubts about the usage of VBS attribute ShortName. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful for you to answer the doubts about "the usage of VBS attribute ShortName"! Next, please follow the editor to study!
Returns a short file name converted according to the previous 8.3 file naming convention.
Object.ShortName
Object should be the name of the File or Folder object.
Description
The following code illustrates how to use the ShortName property:
Function ShowShortName (filespec) Dim fso, f, s Set fso = CreateObject ("Scripting.FileSystemObject") Set f = fso.GetFile (filespec) s = UCase (f.Name) & "
The short file name of "s = s &" is: "& f.ShortName ShowShortName = s End Function at this point, the study of" the use of the VBS attribute ShortName "is over. I hope to be able to solve everyone's doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!