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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Basic
  4. How to copy files in a folder tree into a single folder

How to copy files in a folder tree into a single folder

Scheduled Pinned Locked Moved Visual Basic
data-structurestutorial
2 Posts 2 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.
  • K Offline
    K Offline
    Krishnaraj Barvathaya B
    wrote on last edited by
    #1

    Hi All, I am trying to find out a way to copy all the files that are in a folder and its subfolders (a folder tree) into a single folder (so all files are in the same folder. In other words I am trying to consolidate all files from a tree of folders into a single folder with no subfolders). If the file already exists in the target folder, the code should add a progressive number to the file name. Thanks in advance, Regards, Krishnaraj

    V 1 Reply Last reply
    0
    • K Krishnaraj Barvathaya B

      Hi All, I am trying to find out a way to copy all the files that are in a folder and its subfolders (a folder tree) into a single folder (so all files are in the same folder. In other words I am trying to consolidate all files from a tree of folders into a single folder with no subfolders). If the file already exists in the target folder, the code should add a progressive number to the file name. Thanks in advance, Regards, Krishnaraj

      V Offline
      V Offline
      Vasudevan Deepak Kumar
      wrote on last edited by
      #2

      You already posted this in C# forum. Stop Cross-Posting across all the forums. Permalink: http://www.codeproject.com/script/Forums/View.aspx?fid=1649&msg=2452624[^]

      Vasudevan Deepak Kumar Personal Homepage
      Tech Gossips
      A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson

      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