|
-
February 3rd, 2003, 09:11 AM
#1
Short file name
I need a simple way to get short file name for display.
For example, I have full file name
C:\Dir1\Samples\Files\Doc\Figures.doc and maximum length 30, and result should be like this:
C:\Dir1\...\Doc\Figures.doc.
string s = ShortFileName("C:\\Dir1\\Samples\\Files\\Doc\\Figures.doc");
// s = "C:\Dir1\...\Doc\Figures.doc"
string ShortFileName(string fullName, int maxLen)
{
// ???
}
-
February 3rd, 2003, 10:35 PM
#2
to view the link click here
GOTDOTNET C#.NET
Paresh
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|