Move files to today's date folder (create if not available)

studio

#1

Hi guys,

I’m trying to move a file from folder A to folder B.
In folder B, the robot should move the file to today’s date folder (210318).
If today’s date folder (210318) doesn’t exist, then the robot should create one and move the file to 210318 folder
If today’s date folder (210318) exist, then the robot should not create one and just move the file to 210318 folder

Anyone have idea on doing this please?


#2

@Serran_Neru

Use path exists activity to know whether the path is present or not
If its there then use Move file activity to move the file
else use create directory activity to create the file by giving name DateTime.Now.Tostring(“ddMMyy”)
After creating the file then move into it.

Regards,
Mahesh


#3

hi,

please follow tutorial,

thanks,
Karthik.