Create today folder by Type Into activities

Hi friends
how could i create today folder from type into activities i tried both of use datetime.tostring directly in type into text and use assign activities but both are error and said folder path doesnt exist how could i fix this ?

image

This image shows a form in an automation software where a file path is being entered in the 'Save As' dialog. (Captioned by AI)

@Supasit_Reantongchai,

Why are you using Type Into for creating folder when you have Create folder activity?

Use this snippet in assign activity to build a file path.
Path.Combine("your base folder path", Now.ToString("dd.MM.yyyy"),"Filename")

@Supasit_Reantongchai,

We first need to create a folder in directory before we save anything in that folder.

You can use create folder activity as shown by @ashokkarale in last comment.
Also, to verify first use activity File exist and choose Folder as an option. This activity will give you Boolean output true or false based on is folder exist in directory or not.

1 Like

@Supasit_Reantongchai

First create the folder using create folder activity where you would pass the full path plus the date folder you need… one thing here is to avoid using dots in folder name…

Use path.Combine("Path",Now.ToString("MMddyyyy")) this will create the path proeprly

then use type into to save the file into that folder

cheers

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.