Guest Posted July 27, 2006 Share Posted July 27, 2006 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. Link to comment Share on other sites More sharing options...
NELyon Posted July 27, 2006 Share Posted July 27, 2006 Take away the ""'s around @UserProfileDir Link to comment Share on other sites More sharing options...
MHz Posted July 27, 2006 Share Posted July 27, 2006 Also, add a trailing backslash to make it valid. FileInstall ( "B:\Utilities\Backup_Script\robocopy.exe", @UserProfileDir & "\", 1) FileInstall ( "B:\Utilities\Backup_Script\Backup.bat", @UserProfileDir & "\" , 1) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now