Thread: MoveFile() function question

  1. #1
    Registered User
    Join Date
    Aug 2004
    Posts
    731

    MoveFile() function question

    Ok so when you ues the MoveFile() function does it copy the file and then delete the file?

    And would it leave a trace of the file on the computer (like when you delete a file it gets a flag by it saying it is deleted but doesn't get deleted right away).


    Thank you!

  2. #2
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912
    There appear to be many different API's in which a MoveFile() function is implemented. Care to be more specific?

  3. #3
    Handy Andy andyhunter's Avatar
    Join Date
    Dec 2004
    Posts
    540
    And would it leave a trace of the file on the computer (like when you delete a file it gets a flag by it saying it is deleted but doesn't get deleted right away).
    And you care why?
    i don't think most standard compilers support programmers with more than 4 red boxes - Misplaced

    It is my sacred duity to stand in the path of the flood of ignorance and blatant stupidity... - quzah

    Such pointless tricks ceased to be interesting or useful when we came down from the trees and started using higher level languages. - Salem

  4. #4
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544
    >> Ok so when you ues the MoveFile() function does it copy the file and then delete the file? <<

    If the new file name is on the same partition, the file name will be updated in the index table and the file contents will not be touched. If the new file name is on a different partition, then it will copy and delete.

    >> And would it leave a trace of the file on the computer (like when you delete a file it gets a flag by it saying it is deleted but doesn't get deleted right away). <<

    Yes.

  5. #5
    Registered User
    Join Date
    Aug 2004
    Posts
    731
    what do I sound like a hacker or somthign now?

    Just for my Comp Cleaner program. I am trying to get an easy way of secerly deleteing files.

    (sorry for spelling)

    And I am also refering to msdn file functions.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Getting an error with OpenGL: collect2: ld returned 1 exit status
    By Lorgon Jortle in forum C++ Programming
    Replies: 6
    Last Post: 05-08-2009, 08:18 PM
  2. dllimport function not allowed
    By steve1_rm in forum C++ Programming
    Replies: 5
    Last Post: 03-11-2008, 03:33 AM
  3. Replies: 28
    Last Post: 07-16-2006, 11:35 PM
  4. Change this program so it uses function??
    By stormfront in forum C Programming
    Replies: 8
    Last Post: 11-01-2005, 08:55 AM
  5. Replies: 3
    Last Post: 03-04-2005, 02:46 PM