Create folders and sub folder if doesn't exists while copying a file

@Krithi1 - I think I figured it out…In the below code, Guru and Test folder does not exist and when I ran the code, it created and copied the folder…

image

 My.Computer.FileSystem.CopyFile("C:\Users\giris\Documents\UiPath\Studio\String_Manipulation\DeleteFiles\201872 Invoice Penalty Charge.pdf.txt", "C:\Users\giris\Documents\UiPath\Studio\String_Manipulation\DeleteFiles\Guru\Test\201872 Invoice Penalty Charge.pdf.txt")

image
image
image

Hope this helps…

2 Likes