lafafmentvotre Posted June 28, 2007 Share Posted June 28, 2007 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 Link to comment Share on other sites More sharing options...
Bert Posted June 28, 2007 Share Posted June 28, 2007 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 The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
lafafmentvotre Posted June 28, 2007 Author Share Posted June 28, 2007 Ok But how can i do a fileinstall to include directory ? Thanks Link to comment Share on other sites More sharing options...
lafafmentvotre Posted June 28, 2007 Author Share Posted June 28, 2007 Nobobody to help me ? heeeeeeeellllllllllllllllllllllllllllllppppppppppppppppppp Link to comment Share on other sites More sharing options...
Jettison Posted June 28, 2007 Share Posted June 28, 2007 Maybe use _FileListToArray() then make a For..Next loop to FileInstall() for each item in the array? [font="Impact"]Cats rule, humans drool.[/font] Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now