Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Restore folder to previous version?

Restore folder to previous version?

Scheduled Pinned Locked Moved C / C++ / MFC
jsonhelpquestionannouncement
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bosfan
    wrote on last edited by
    #1

    Hi, i search for an function to restore folder content to previous status/version? I mean, if i add new files to folder, i need in some cases to restore a status before adding new files!? Restore to previous version? Is there an API to use for that or some sample code?? Simple single deletion of any each file is not the way, because there can be many files added(hundreds)! Thanks for any help!

    D A 2 Replies Last reply
    0
    • B bosfan

      Hi, i search for an function to restore folder content to previous status/version? I mean, if i add new files to folder, i need in some cases to restore a status before adding new files!? Restore to previous version? Is there an API to use for that or some sample code?? Simple single deletion of any each file is not the way, because there can be many files added(hundreds)! Thanks for any help!

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      bosfan wrote:

      i search for an function to restore folder content to previous status/version?
      I mean, if i add new files to folder, i need in some cases to restore a status before adding new files!?
      Restore to previous version?
      Is there an API to use for that or some sample code??

      No such API exists.

      bosfan wrote:

      Simple single deletion of any each file is not the way, because there can be many files added(hundreds)!

      You can use SHFileOperation() with wildcards.

      "One man's wage rise is another man's price increase." - Harold Wilson

      "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

      "Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous

      B 1 Reply Last reply
      0
      • D David Crow

        bosfan wrote:

        i search for an function to restore folder content to previous status/version?
        I mean, if i add new files to folder, i need in some cases to restore a status before adding new files!?
        Restore to previous version?
        Is there an API to use for that or some sample code??

        No such API exists.

        bosfan wrote:

        Simple single deletion of any each file is not the way, because there can be many files added(hundreds)!

        You can use SHFileOperation() with wildcards.

        "One man's wage rise is another man's price increase." - Harold Wilson

        "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

        "Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous

        B Offline
        B Offline
        bosfan
        wrote on last edited by
        #3

        Hi, thanks for answer! regards bosfan

        1 Reply Last reply
        0
        • B bosfan

          Hi, i search for an function to restore folder content to previous status/version? I mean, if i add new files to folder, i need in some cases to restore a status before adding new files!? Restore to previous version? Is there an API to use for that or some sample code?? Simple single deletion of any each file is not the way, because there can be many files added(hundreds)! Thanks for any help!

          A Offline
          A Offline
          App_
          wrote on last edited by
          #4

          Windows has a feature called Backup. Find it here , and a list of related actions here.

          P 1 Reply Last reply
          0
          • A App_

            Windows has a feature called Backup. Find it here , and a list of related actions here.

            P Offline
            P Offline
            Philippe Mori
            wrote on last edited by
            #5

            If functionality provided by the operating system is not sufficient, you might consider using software revision control for your files or differential backup with your prefered tool.

            Philippe Mori

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups