#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2012
    Posts
    4
    Rep Power
    0

    Copy pdf file and place the file into different folders


    Hello,

    I am using Vb.net 2010 I want to copy pdf files (invoices) with numeric prefix (33.pdf, 226.pdf, etc.) from one folder and create new folder based on file name. For example file 33.pdf will go newly created folder call 33, file 226.pdf will go newly created folder call 226, etc. The number represents customer ID number. How do I achieve this? any insights will be appreciated. Thank you.
  2. #2
  3. No Profile Picture
    Stumpier old Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jun 2003
    Posts
    14,409
    Rep Power
    4538
    VB has file and directory functions, as does the filesystem object if you're using scripts. There is plenty of documentation in the msdn library, including sample code snips.
    ======
    Doug G
    ======
    It is a truism of American politics that no man who can win an election deserves to. --Trevanian, from the novel Shibumi
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2012
    Posts
    4
    Rep Power
    0

    Thanks


    Doug, thanks for the tip

IMN logo majestic logo threadwatch logo seochat tools logo