User Tag List

Results 1 to 5 of 5

Thread: Copy & overwrite file in Vista

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module

    Join Date
    Jul 2006
    Location
    Lacey, WA
    Posts
    756
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Copy & overwrite file in Vista

    In my program, I am copying over a file from one location to another. This works just fine, unless another file of that same name exists in the new location. The File Object doesn't seem to be able to overwrite that existing file with the copied file's information. Deleting the file does not work either. Is this a Vista problem? I have tried telling MMF2 to run the program as an Administrator, and I have ran MMF2 as an Admin, but it still does not work.

    Any ideas?

  2. #2
    No Products Registered

    Join Date
    Jun 2008
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Copy & overwrite file in Vista

    I think I am experiencing similar problems with a small number of my users, who claim that setting Admin privileges is also not solving the problem.
    For now, running the app and associated files from a subdirectory of 'Downloads' or 'My Documents' seems to alleviate it.
    I too would be interested to know more about what is going on here.

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleInstall Creator ProPatch Maker
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    DJFuego's Avatar
    Join Date
    Jul 2006
    Location
    UK
    Posts
    1,416
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Copy & overwrite file in Vista

    It's simple user rights issue, Its something I see every day. You should make it so the application saves to a writable area by the user that's logged in. Usually %userprofile%\application data\Your App/Game

  4. #4
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Copy & overwrite file in Vista

    Quote Originally Posted by DJFuego
    %userprofile%\application data\Your App/Game
    Better to use %appdata%\Your App/Game\, in case they've moved their appdata folder.

  5. #5
    No Products Registered

    Join Date
    Jun 2008
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Copy & overwrite file in Vista

    I've been having some more trouble with the File object tonight. It was refusing to copy a file when I was logged in as admin *and* in a App Data subfolder.

    Using the 'Clear last error' action before the copy action seemed to fix this. An earlier action that was failing seems to 'jam' the extension.

Similar Threads

  1. File copy gets damaged
    By AWK in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 23rd December 2008, 10:37 PM
  2. File copy between UNC paths
    By DJFuego in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 30th January 2008, 12:50 PM
  3. File Copy Problem
    By Pxl_Buzzard in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 28th November 2006, 11:15 PM
  4. How to copy file from Binary Data
    By William87 in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 23rd October 2006, 12:19 PM
  5. Copy Protection of Installer File
    By Mike_Park in forum Install Creator and Patch Maker
    Replies: 8
    Last Post: 12th September 2006, 09:51 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •