moving a folder

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • conics
    New Member
    • Feb 2008
    • 30

    moving a folder

    is it possible to move a folder from 1 directory to another

    this is the situation, i created a database file and then the database depends on the folder which is of course has the same name as the file database name its dependencies are on this folder. and i have to move the database and its dependencies in to another folder, can i move the folder?


    c:\vb projects\part1
    db1.db(database )
    db1(folder)
    ..db1files

    then i need to move it to

    c:\vb projects\part2

    i tried

    system."io.file .move"
    and yes i was able to move the database

    but how can i move the folder(db1)?
    i tried system.io.direc tory.move, but it returns an error

    thanks in advance.
  • jamesd0142
    Contributor
    • Sep 2007
    • 471

    #2
    What error are you getting...?

    I use

    [code=vbnet]
    System.IO.Direc tory.Move("C:\t emp\New Folder", "C:\temp\Captur ed\New Folder")
    [/code]

    with no error / Maybe the directory your moving is open?

    James

    Comment

    • conics
      New Member
      • Feb 2008
      • 30

      #3
      Originally posted by jamesd0142
      What error are you getting...?

      I use

      [code=vbnet]
      System.IO.Direc tory.Move("C:\t emp\New Folder", "C:\temp\Captur ed\New Folder")
      [/code]

      with no error / Maybe the directory your moving is open?

      James
      got it thanks..

      i forgot about the destination

      Comment

      Working...