Folder logic

AB001
AB001 dp
AB001 dp2
AB002
AB002 DB1
Ab003
ab004
ab004 dup

These are the file names,

I need to create a folder of name
AB001 and

add all
AB001
AB001 dp
AB001 dp2 these files in it

Similarly for
AB002 create folder AB002
and add all
AB002
AB002 DB1 files in it

for ab003 create ab003 and add only that in that folder

Hi @Sweety_Girl,
Not a problem :slight_smile:
Just use combination of those two activities:
image

Logic to do this flow?

  1. You are creating folder with name you need.
  2. You are moving mentioned files from location where those are to the newly created folder.

Everything is well described in attribute editor:
image
image

Please also take a look into documentation:
https://docs.uipath.com/activities/lang-en/docs/create-directory
https://docs.uipath.com/activities/lang-en/docs/move-file

1 Like

FolderLogic.xaml (9 KB)

Replace the file path in all the places and test it. @Sweety_Girl

Thanks!

The first filename is not five digit it varies

Hi @Sweety_Girl,

Try to get the dynamic value and pass it there in substring…!

Thanks!

1 Like