I have written my application to be able to read model data files via the open file dialog, drag/drop and from the command line in a DOS window. All of these methods of model data entry work fine. I then take the root file name and use different extensions like .log and .res to create log, and results files associated with the original model file. In windows explorer I can also open the application by clicking on the model data file. However I have found that with the explorer method the model file name is passed to the application using the library function COMMAND_LINE which works fine except that long file names get shortened to the old 8.3 file name format and subsequently the log and results files use this shortened eight character file name instead of the original long file name, thus losing their associativity. This becomes a problem when I re-visit the model, as the application doesn’t find the existing results file. The confusing thing is, if I start the application from a DOS window command line with the file name appearing after the application name, long file names in this case do not get shortened.
I realise that the problem probably lies with windows and not FTN95, as the application is handed an equivalent command line (with shortened names) by explorer, but is there any setting in windows that can prevent this happening or is there a method I could use to convert a short 8.3 file name back to its long name ?