Jump to content

Recommended Posts

Posted

Hi,

I've tried a number of different options in trying to copy over 4 files to the Program Files directory, when run within Windows 7. I have turned UAC down to the lowest level, with no success. I've also tried adding:

#RequireAdmin

#AutoIt3Wrapper_Res_requestedExecutionLevel=requireAdministrator

Neither of which seem to be doing anything. I'm receiving no prompts, etc. I have confirmed that the locations are correct and I'm using fully qualified paths. Any suggestions?

Thanks in advance!

  • Moderators
Posted

Hi, DietCoke. Perhaps you could explain a little more, or post a piece of code that is not working for you, so we can better assist you. This snippet works just fine for me.

FileCopy(@ScriptDir & "Restore User State.xml", @ProgramFilesDir & "Restore User State.xml", 1)

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

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
×
×
  • Create New...