How convert win path to dos path [modified]
-
Hi guys. How i can convert such a windows base address :
C:\Documents and Settings\Sina\My Documents\My Pictures\p1(2).jpg
to Dos style path like :
C:\docume~1\sina\mydocu~1\...
Tnx for your reply ;) -- modified at 17:21 Tuesday 22nd May, 2007
I believe GetShortPathName[^] will do what you need. I would like to think there is an easier way, but I am not aware of one.
topcoderjax - Remember, Google is your friend.
-
I believe GetShortPathName[^] will do what you need. I would like to think there is an easier way, but I am not aware of one.
topcoderjax - Remember, Google is your friend.
-
tnx for your reply. But it's not the style i wanted. i want get full dos mode path like it: C:\Docume~1\Sina\MyDocu~1\MyPict~1\p1~1.jpg
That IS the "DOS mode" path, as you call it.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007 -
tnx for your reply. But it's not the style i wanted. i want get full dos mode path like it: C:\Docume~1\Sina\MyDocu~1\MyPict~1\p1~1.jpg
I believe what I gave you should have given you the dos path, in the format that you showed. If it gave you something different please show me what it was, as I am confused how this isn't meeting your needs.
topcoderjax - Remember, Google is your friend.
-
I believe what I gave you should have given you the dos path, in the format that you showed. If it gave you something different please show me what it was, as I am confused how this isn't meeting your needs.
topcoderjax - Remember, Google is your friend.