File.GetShortName

string File.GetShortName ( 

string Filename )

Example 1

short_version = File.GetShortName ("C:\\Program Files\\TrueUpdate 3.0\\TrueUpdate.exe");

Gets the "8.3" version of the file path "C:\Program Files\TrueUpdate 3.0\TrueUpdate.exe" and stores it in the variable "short_version." The result will look similar to "C:\PROGRA~1\TRUEUP~3.0\TRUEUP~1.EXE."

See also:  Related Actions