You can use BuddyAPI (http://www.mods.com.au/budapi/) to get the short file name (DOS 8.3 format) and pass the short file name to the FileIO Xtra.
e.g.: baShortFileName("C:\Work\Current\Work\Spreadsheets\17-02-04\state- standards\ss-v005\New Folder\New Folder1\New Folder2\New Fo\bm-OK-Rev-v02.csv")
returns something like: ("C:\Work\Current\Work\Spread~1s\17-02-04\state-~1\ss-v005\New Fo~1\New Fo~1\New Fo~1\New Fo\bm-OK-~1.csv"
Of course if the short file name is longer than 126 characters you're screwed.
-Jeremy Aker
On Mar 31, 2004, at 3:59 AM, Des Marron wrote:
Hi All,
Has anyone ever come accross a limit to the number of of characters in a
file path that can be used in the file IO Xtra to open a file?
The limit for the path seems to be 126 characters. After that the file can
be found.
For example:
This will find the file (The las folder is New Fo) C:\Work\Current\Work\Spreadsheets\17-02-04\state-standards\ss-v005\New Folder\New Folder1\New Folder2\New Fo\bm-OK-Rev-v02.csv
This will not (The las folder is New Fol) C:\Work\Current\Work\Spreadsheets\17-02-04\state-standards\ss-v005\New Folder\New Folder1\New Folder2\New Fol\bm-OK-Re-v02.csv
I would like to keep using the FileIO xtra so is there an update or a work
around using the FileIO xtra?
Thanks All,
Des.
[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!]
[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!]
