|
-
Jun 15th, 2000, 12:55 AM
#1
Thread Starter
Junior Member
Please HELP!
i work with Win2k and VB6 (Enterprise)...
i know about the API function GetShortPathName, but when i try to use it i get an ****ing error message.
i try it all!
there is another way to get it?
i try from dos... but nothing.
please tell me if you know how to do it.
program that write it to file, i dont know...
HELP!
-
Jun 15th, 2000, 01:49 AM
#2
Thread Starter
Junior Member
-
Jun 15th, 2000, 02:41 AM
#3
So Unbanned
That seems long... why not just do this:
Code:
If len(path) > 8 then path = left$(path, 6) & "~1"
Seems easier to me?
-
Jun 16th, 2000, 03:54 AM
#4
Thread Starter
Junior Member
Yes But...
yes but if you have space in dir name like
"My Documents"
with your code it will be
"My Doc~1"
and it
"MyDocu~1"
but you can do
for i=1 to 7
if mid(path,i,1) = " " then ...
next
but it much more "safer" to use API command... (it's take it from the real place...)
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
|