Like the topic says, for instance Shortfn("C:\Documents and Settings") would return "C:\Docume~1"

In light of that Longfn() would be a nice addition as well.
Since this could be scripted, the reason I ask for it to be implemented as a kix function is that one can never shorten to short filenames and be accurate.