Copying files to Vista Program Files in ruby script

Newbie working on a helper script for app testers (who are using various
OS’s) copying down files from network servers. All is going well until
hitting this wall with Vista. I am not able to copy down a file from a
file server to an app folder in Program Files, script runs without
failure, just no file copied once done.

It seems that this is due to the Vista uac stuff as I am able to copy
the file when redirecting the script to the Desktop. And just to be
clear, I am using fileutils for the file copy and XP works without a
hitch.

i.e. If the end user woud recieve the ‘Destination Folder Access Denied’
prompt (with the Continue Skip and Cancel buttons) when copying the file
to a location, the Ruby script will not copy the file. I do need to
write this so it will work with Vista in its default setup.

I know there must be a way to work around this, I just can’t find it.

Thanks for any help you can provide.