Jump to content
Sign in to follow this  
Alek

Fileinstall problem

Recommended Posts

Alek

when i try to use fileinstall it works when i run the script but when i try to compile the script i get a error saying invalid function :whistle:

FileInstall(@ScriptDir & "\Shadow.png",@TempDir & "\Shadow.png",1)

[font="Impact"]Never fear, I is here.[/font]

Share this post


Link to post
Share on other sites
SkiFreak

FileInstall(@ScriptDir & "\Shadow.png",@TempDir & "\Shadow.png",1)
AutoIt help says:

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.

Share this post


Link to post
Share on other sites
Alek

oh, thought it could be a @dir and not a $dir :whistle:

a well, i remove the @scriptdir and it worked


[font="Impact"]Never fear, I is here.[/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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.