Sign in to follow this  
Followers 0
whyme

Fileinstall Error

3 posts in this topic

Invalid FileInstall() function:

FileInstall(@DesktopDir & "\Test", @DesktopDir & "\Test1.bat")

I get this Error when trying to Compile .au3 If I run just the.au3 it works as it should.

FileCopy works and will Compile but FileInstall wont Why?

Share this post


Link to post
Share on other sites



I get a different Error.

Error adding file:.\Test.bat

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

What about...

$desktop = @DeskTopDir

FileInstall($desktop & "\Test.bat",@DesktopDir & "Test1.bat")

I haven't tried it, but wouldn't the $desktop be evaluated at compile time while the @DesktopDir in the FileInstall command would be evaluated during the script run?

Edited by ryanm

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