Sign in to follow this  
Followers 0
pvr02

FileInstall and @UserProfileDir

3 posts in this topic

I need to copy some files to a folder called "Backup" into the users profile before executing a script. I planned on doing this using the FileInstall option so it would be contained within an exe and would allow the files to be overwritten if I update the autoit executable.

How would I go about coding this? I have tried:

FileInstall ( "B:\Utilities\Backup_Script\robocopy.exe", "@UserProfileDir", 1)
FileInstall ( "B:\Utilities\Backup_Script\Backup.bat", "@UserProfileDir" , 1)

But it isn't placing any files in the root of my profile.

Share this post


Link to post
Share on other sites



Take away the ""'s around @UserProfileDir

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