ExtractAttachedFile

Extracts an embedded file from a compiled large EXE.

 

Syntax:

ExtractAttachedFile(source-name, target-name) {compiled version only}

Parameters:

(s) source-name specifies the name of the embedded file. This must not contain any path
information. The embedded file may be a WIL DLL, an extender DLL, or an
"other file".

(s/i) target-name /request specifies the name of the output file that will be written (This may contain
path information.) or the request number (see below).

Returns:

(i/s) returns 1 or a tab-delimited list of embedded file names, which do not contain any path information.

 

To list embedded files:

"source-name" must be a blank string ("").

"target-name/request" specifies the type of embedded files to list:

 

Request

Meaning

0

WIL DLL

1

Extender DLL's

2

"Other files"

 

Note: Added an option to the compiler to skip auto-extraction of extenders and "other files" from large EXE's. The WIL DLL is always extracted from a large EXE, if necessary.

 

Make sure you choose the skip auto-extraction option in the compiler if you want to control file extraction with ExtractAttachedFile.

Example:

wildll = ExtractAttachedFile("",0)
Message("WIL DLL",wildll)

See Also:

<none>