Apr 24, 2007 #1 brutteforcce Technical User Joined Jun 23, 2006 Messages 105 Location RO I have to assign some files in Pascal that have more than 8 characters. What can I do?
Apr 24, 2007 1 #2 feherke Programmer Joined Aug 5, 2002 Messages 9,541 Location RO Hi brutteforcce said: I have to assign some files in Pascal that have more than 8 characters. What can I do? Click to expand... Maybe to rephrase your question... Do you mean, the filename is longer than 8 characters ? Which would mean long filename, aka LFN. If so, you can use the corresponding old DOS names : Code: [gray]{ c:\Program Files\Apache Group\Apache2\conf\httpd.conf }[/gray] assign(fil,[i]'c:\progra~1\apache~1\apache2\conf\httpd~1.con'[/i]); Or see what can you find on the web. For example on Franz Glaser's page there are some related links. Or try to compile your program with FreePascal. It supports LFN. Feherke. http://rootshell.be/~feherke/ Upvote 0 Downvote
Hi brutteforcce said: I have to assign some files in Pascal that have more than 8 characters. What can I do? Click to expand... Maybe to rephrase your question... Do you mean, the filename is longer than 8 characters ? Which would mean long filename, aka LFN. If so, you can use the corresponding old DOS names : Code: [gray]{ c:\Program Files\Apache Group\Apache2\conf\httpd.conf }[/gray] assign(fil,[i]'c:\progra~1\apache~1\apache2\conf\httpd~1.con'[/i]); Or see what can you find on the web. For example on Franz Glaser's page there are some related links. Or try to compile your program with FreePascal. It supports LFN. Feherke. http://rootshell.be/~feherke/
Apr 24, 2007 Thread starter #3 brutteforcce Technical User Joined Jun 23, 2006 Messages 105 Location RO Thank you! FreePascal did the job... Upvote 0 Downvote