Copying files to Vista Program Files in ruby script

Discussion in 'Ruby' started by Shawn Mcclain, Sep 28, 2007.

  1. 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.
    --
    Posted via http://www.ruby-forum.com/.
    Shawn Mcclain, Sep 28, 2007
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    0
    Views:
    488
  2. SagharAyyaz
    Replies:
    1
    Views:
    485
    Jonathan Mcdougall
    May 9, 2006
  3. Michael
    Replies:
    5
    Views:
    900
    Bjoern Schliessmann
    Nov 3, 2007
  4. SpringFlowers AutumnMoon

    Ruby 1.9 still cannot list all files on Vista or XP?

    SpringFlowers AutumnMoon, Apr 8, 2009, in forum: Ruby
    Replies:
    17
    Views:
    225
    Heesob Park
    Apr 14, 2009
  5. Os Ai
    Replies:
    6
    Views:
    96
    Os Ai
    May 15, 2009
Loading...

Share This Page