File movement

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hkhella
    New Member
    • Nov 2006
    • 3

    File movement

    I am a novice and need lots of help - using VB 2005.
    I receive many files daily from an automated center. These files are autmatically downloaded into a subfolder on my computer.
    I need to move each file from its subfolder and consolidate the files into a single folder.
    Everytime a file is downloaded, it is placed into a subfolder with a unique name. Each subfolder starts and ends with the same name but has a different middle section (i.e. es.edi.ro@ABCom pany.com 108620199 File(s) from ABCompany. The second subfolder is named: es.edi.ro@ABCom pany.com 108620469 File(s) from ABCompany).
    Again, each subfolder holds one file and each file is of the same type as a trailing name RES (i.e. HSS_NHQ_2006120 9_KHELLAQHPC-011461.RES).

    I need to move these RES files from their subfolder into a single folder.

    Can someone guide me as to how this may be done - either as a batch file or some type of automation. Currently I have to manually move each individual file.

    Thank you
  • willakawill
    Top Contributor
    • Oct 2006
    • 1646

    #2
    Originally posted by hkhella
    I am a novice and need lots of help - using VB 2005.
    I receive many files daily from an automated center. These files are autmatically downloaded into a subfolder on my computer.
    I need to move each file from its subfolder and consolidate the files into a single folder.
    Everytime a file is downloaded, it is placed into a subfolder with a unique name. Each subfolder starts and ends with the same name but has a different middle section (i.e. es.edi.ro@ABCom pany.com 108620199 File(s) from ABCompany. The second subfolder is named: es.edi.ro@ABCom pany.com 108620469 File(s) from ABCompany).
    Again, each subfolder holds one file and each file is of the same type as a trailing name RES (i.e. HSS_NHQ_2006120 9_KHELLAQHPC-011461.RES).

    I need to move these RES files from their subfolder into a single folder.

    Can someone guide me as to how this may be done - either as a batch file or some type of automation. Currently I have to manually move each individual file.

    Thank you
    using filesystemobjec t you can create a folder object and use a for each...loop in the folders collection

    Comment

    • hkhella
      New Member
      • Nov 2006
      • 3

      #3
      Originally posted by willakawill
      using filesystemobjec t you can create a folder object and use a for each...loop in the folders collection
      Would you be so kind as to provide me with some additional clarification to your suggestion. Thank you once more.

      Comment

      Working...