At 16:41 +0800 30/11/02, Brad Hile wrote:
Does baShortfilename return the shortName of the directory you want to create the file in?Just wondering if someone can add a new perspective to a problem. I am developing for a win system and using fileio. Currently fileIO has a problem with paths over 126 chars so I use BuddyAPI's baShortfilename to truncate the path. All good so far, but now the problem arises. The baShortFileName only returns a truncated name from a file that already exists and I'm currently using the create method of the xtra. Therefore I can't create the file because I can't trucate the path and I can't truncate the path because I can't create the file! (oooh my head hurts) Any other (inbuilt/free) Xtras that create files or truncate filenames available? Any way of truncating the filename using lingo so that Windows can read it?
If you create a file with a 8.3 name you will know it's shortName already.
If you need a long fileName then rename the 8.3 named file after creation.
Or you could copy a file from a known location into your desired location, and then rename and take exploitative advantage of it, when in place.
Are those perspectives?
Jakob
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]