copy pdf file and place the file into different folders
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.
Re: copy pdf file and place the file into different folders
To create folder, search about:
To copy a file, search about:
System.IO.File.Copy( FileToCopy, NewCopy )