THis may be fairly simple but i am having real trouble finding an answer. I would like to get the truncated filename for a file once a user has imported the file into my windows ap.
If OpenFileDialog1.ShowDialog = DialogResult.OK Then
txtDataFile.Text = OpenFileDialog1.FileName
returns eg: c:\documents and settings\user\this is a great program.exe
i need to have this in the truncated (i think thats what its called) version
eg: c:\documen~1\user\this~1.exe (or something like that)
and also get the name of the file itself from this
thanks very much