All Things WinBatch > WinBatch

Listing Attached Files

(1/1)

cssyphus:
Is there a command to List attached files?  (Using 2018B)

I am using ExtractAttachedFiles and getting an error on one file.  I double-checked the .cmp file and the file-in-question is listed there, and the "Count" under [Other Files] is accurate, but the script is crashing when asked to extract the file.

If there was such a command then I could "test" if the file is in the executable before attempting to extract.

Thanks!

td:
Since the function only generates minor errors it is simple enough to wrap in a simple error handler.


--- Code: Winbatch ---nMode = ErrorMode(@OFF)
LastError()
ExtractAttachedFile('whatever','whatever')
ErrorMode(nMode)
if LastError()
   ;;; do something
endif
 
But it would seem better to just correct whatever is that is causing the file to either not be present or at least appear not to be present in the executable.

Navigation

[0] Message Index

Go to full version