Jump to content

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

Recommended Posts


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:



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!

Link to post
Share on other sites
  • Moderators

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!

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
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...