SB K

SB K

  • NA
  • 59
  • 11.9k

How to seperate group files into folder programally using c#

Jun 26 2019 7:40 AM
Hi All,
 
I am very new to the developing.. Please guide how to achive this below requirement..
In a folder i have set of pdf files,. as below..
 
Input Folder-A contains below files.
 
1626-MAY-21-1.pdf
1626-MAY-21-2.pdf
1626-MAY-21-2 - 1.pdf
1626-MAY-21-11.pdf
1626-MAY-21-12.pdf
1626-MAY-21-12 - 1.pdf
1626-MAY-21-21.pdf
 
Here i need to do automation.
 
new sub folder name as 1626-MAY-21-2.
 
move only file "1626-MAY-21-2" & "1626-MAY-21-2 - 1"
  
then new sub folder name as 1626-MAY-21-12.
 
move only file "1626-MAY-21-12" & "1626-MAY-21-12 - 1"
 
Hoping for your guidelines!

Answers (1)