Click here to Skip to main content
16,015,444 members
Articles / Programming Languages / Shell

Get DOS 8.3 short name with VbScript

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
3 May 2010CPOL 24.1K   2  
Create a new text file called shortname.vbs:Open in Notepad and paste the following code in it:set fso = CreateObject("Scripting.FileSystemObject") strLongName = Wscript.Arguments(0)strShortName = "Invalid File/Folder - (" & strLongName & ")"Set fsoFile = NothingOn Error Resume...

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer Codely
South Africa South Africa
Me, a disorder of the brain that results in a disruption in a person's thinking, mood, and ability to relate to others.

Comments and Discussions