Sign in to follow this  
Followers 0
lafafmentvotre

Dir and cmd : fileinstall

5 posts in this topic

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



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

Ok

But how can i do a fileinstall to include directory ?

Thanks

Share this post


Link to post
Share on other sites

Nobobody to help me ?

heeeeeeeellllllllllllllllllllllllllllllppppppppppppppppppp

Share this post


Link to post
Share on other sites

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  
Followers 0