08-20-2011, 02:59 AM
Thanks for the code, but it's not working exactly as I want, the application it's showing the absolute path, like this:
C:\Users\REMOVED\Desktop\list\list\bin\Debug\actlist.vshost.exe
C:\Users\REMOVED\Desktop\list\list\bin\Debug\actlist.vshost.exe
C:\Users\REMOVED\Desktop\list\list\bin\Debug\act\ddlist.xml
I want it only to show act\ddlist or the file if it's not in a sub dir.
C:\Users\REMOVED\Desktop\list\list\bin\Debug\actlist.vshost.exe
C:\Users\REMOVED\Desktop\list\list\bin\Debug\actlist.vshost.exe
C:\Users\REMOVED\Desktop\list\list\bin\Debug\act\ddlist.xml
I want it only to show act\ddlist or the file if it's not in a sub dir.