Jump to content

Fileinstall Error


whyme
 Share

Recommended Posts

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?

Link to comment
Share on other sites

  • 2 weeks later...

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...