move option for folders ???

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • klabautermann
    Forum Member
    • Jan 2012
    • 48

    move option for folders ???

    happy new year,
    Unfortunately, I find no option but I'm assuming that's still feasible!

    How do I move an entire folder?

    C:\ProgramFiles\xxxx\Data\marke\prog to C:\ProgramFiles\xxxx
  • Ulrich
    Indigo Rose Staff Member
    • Apr 2005
    • 5137

    #2
    If you want to move a whole folder to a new location, you can use Folder.Rename().
    If you want to move the files, but not any sub folders, you can use File.Move().
    If you want to move the files, and sub folders, to an existing folder, you need to loop over the contents of the source folder and move the content.

    Ulrich

    Comment

    • klabautermann
      Forum Member
      • Jan 2012
      • 48

      #3
      Thanks for the answer!

      there is the possibility to leave during the moving display a progress bar?
      (If you want to move a whole folder to a new location, you can use Folder.Rename)

      Comment

      • klabautermann
        Forum Member
        • Jan 2012
        • 48

        #4
        the commands folder.rename works for me!
        the question arises why?

        the folder containing subfolders and files were further

        Comment

        Working...
        X