Copying files to Vista Program Files in ruby script

S

Shawn Mcclain

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,754
Messages
2,569,528
Members
45,001
Latest member
Kendra00E1

Latest Threads

Top