Jump to content

Dir and cmd : fileinstall


Recommended Posts

Hello

I need a script who, in first part, can compile directory and files in the script.

It's ok if i do this for one file but it doesn't work with directory and files.

I test with this script :

DirCreate("D:\dirtest\")
$dir = "D:\dirtest\"
FileInstall("mydirectory\*.*", $dir, 1)
Sleep(10000)
DirRemove("D:\dirtest\", 1)

Any idea ?

Thanks and sorry for my bad english language :rolleyes:

Link to comment
Share on other sites

From the helpfile:

FileInstall:

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 if the statement is executed. Keep in mind that files such as images can greatly increase the size of a compiled script.

The source file must be a string and not a variable so that the compiler can extract the filename to include. The source cannot contain wildcards.

FileInstall("mydirectory\*.*", $dir, 1) - * is a wildcard

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...