Sign in to follow this  
Followers 0
SkellySoul

FileInstall Question

2 posts in this topic

#1 ·  Posted (edited)

Hello :P

I understand that you cannot use "macros" in FileInstall but I have heard that you are actually able to use "macros" in FileInstall as long as they are only used for the destination. I am wondering is this true.

Example:

FileInstall(@ScriptDir & "\Test.jpg" , @HomeDrive "\Test.jpg")

The above code shouldn't work but if what I heard is true then this should be able to work.

FileInstall("Test.jpg" , @HomeDrive "\Test.jpg")

Please explain if this is true or if no "macro" what so ever can be used at all.

Thanks and Merry Christmas :shifty:

[Edited]

I am also wondering could the destination be a variable :x

Edited by SkellySoul

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Macro can be use in second part of FileInstall function

FileInstall("Test.jpg" , @HomeDrive &  "\Test.jpg")

Don't forget the & character

Edited by wakillon

AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

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