Hey guys,
I got a small problem here. You see, I got an alternate to make shortpathnames w/o using the GetShortPath API. The code is as followed:
Code Snippet:
-------------
'I wont type out the sub stuff etc.
'Code below:
'Long Name: My Document
Dim Temp as String
'make sure there's no space in between
Temp = Join("My Document", " ")
'take the first 6 characters
Temp = Left$(Temp, 6)
'plant the "~1" stuff
Temp = Temp & "~1"
-------------------
Sometimes we might have 'My Document' and 'My Document Folder', thus we will have 'mydocu~1' and 'mydocu~2'. How do we solve this ~1 and ~2 etc.. problem? And which is '~1', which is '~2'?
Hope you guys understand what I am typing coz I myself don't understand!![]()
![]()
![]()





Reply With Quote