Jump to content
Sign in to follow this  
lafafmentvotre

Dir and cmd : fileinstall

Recommended Posts

lafafmentvotre

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:

Share this post


Link to post
Share on other sites
Bert

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

Share this post


Link to post
Share on other sites
lafafmentvotre

Ok

But how can i do a fileinstall to include directory ?

Thanks

Share this post


Link to post
Share on other sites
lafafmentvotre

Nobobody to help me ?

heeeeeeeellllllllllllllllllllllllllllllppppppppppppppppppp

Share this post


Link to post
Share on other sites
Jettison

Maybe use _FileListToArray() then make a For..Next loop to FileInstall() for each item in the array?


[font="Impact"]Cats rule, humans drool.[/font]

Share this post


Link to post
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
Sign in to follow this  

×