On 1/21/2014 7:45 PM, luciano de souza wrote:
The program compiles, but I got an error. The message says that the
first file of the directory can't be opened.

What is wrong?

your code uses faAnyfile... perhaps you need to be more restrictive? is your problem caused by a sub-directory with the directory of files you are trying to archive? or perhaps there's a soft/hard-link?

i also do not see a findclose call after you finish with findfirst/findnext... granted, it may not be needed since you are exiting the program but it is more proper, IMHO...


--
NOTE: No off-list assistance is given without prior approval.
      Please keep mailing list traffic on the list unless
      private contact is specifically requested and granted.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to