Include and install a file with the compiled script.
FileInstall ( "source", "dest" [, flag] )
Parameters
source | The source path of the file to compile. This must be a literal string; it cannot be a variable. |
dest | The destination path with trailing backslash. This can be a variable. |
flag | [optional] this flag determines whether to overwrite files if they already exist: 0 = (default) do not overwrite existing files 1 = overwrite existing files |
Return Value
Success: | Returns 1. |
Failure: | Returns 0. |
Remarks
The FileInstall function is designed to include files into a compiled AutoIt script. These included files can then be "extracted" during execution of the compiled script. Keep in mind that files such as images can greatly increase the size of a compiled script.
Related
#Include
Example
FileInstall("C:\test.au3", "D:\mydir\test.au3")