Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: path problem - help needed

From: philb:upnaway at: 18-May-2003 22:52

Hi Romano, I have some docs on how windows creates the short names (for compatibility eith 16 bit ptograms) .... 1. Removes all spaces & other illeagal characters 2. Truncates the long filename to 6 charecters if necessary appends a ~ followed by a single digit. If this cerates a duplicate filename Windows increaces the digit by 1. If necessary Windows will reduce the filename to 5 characters and use ~ follwed by a 2 digit number 3. Trancates the file extension to 3 characters. If the long filename has no extension the the short filename will have no extension. 4. Changes all lowercase letters to uppercase. but conversion back to the full file name would seem to need access the long-file name (as seen in a DOS directory listing). Phil === Original Message === Hi Philb, A name in the form ~1 can come from the starting dir of Rebol (if launched by another program) or from some user or database input. --- Ciao Romano