Jump to content
Sign in to follow this  
DietCoke

Copying files to Windows 7 C:\Program Files or C:\Program Files (x86)

Recommended Posts

DietCoke

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!

Share this post


Link to post
Share on other sites
JLogan3o13

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)

√-1 2^3 ∑ π, and it was delicious!

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.