Create your first automation in just a few minutes.Try Studio Web →
by Sopra Steria Ltd.
0
Snippet
<100
Summary
Summary
Many projects require to create the current date folder using Year and Month. This snippet will create the folders and overwrite as per user's input
Overview
Overview
The snippet can be used to create the current date folder using current year and monthand as an option, it overwrites the folder and its contents if it already exists.
The given activity already handles the validations of existence of the folders and creates a new folder if it does not exist. The user is required to input the base location where the folders are to be created and this activity will automatically create the folders. If the folder already exists the user has an option to choose if the folder and its contents need to be overwritten.
Example: Let us assume today's date is January 1st 2020 and the user wants to create the folder at C:\UIPATH, the activity will create the folders in the given manner:
C:\UIPATH\ 2020\Jan\1
Inputs:
1. In_FolderPath: The base location where the user wants to create the folders.
2. in_OverwriteFolder: This is the flag which is used by the user to instruct to overwrite the folders and its contents if the path already exists. If left blank, the activity will assume it to be false.
Output:
1. out_FolderCreated: This will give the output i.e. True or False. True in case the action is completed and the folders are created, else False.
2. out_FolderPath: This will return the absolute Path of the created folder.
Features
Features
Creates current date folder within current year and month allowing user to create the folders as per the need with the option to overwrite the folder if required.
Additional Information
Additional Information
Dependencies
UiPath.Excel.Activities: 2.7.2, UiPath.Mail.Activities: 1.7.2, UiPath.System.Activities: 19.10.1, UiPath.UIAutomation.Activities: 19.11.1
Code Language
Visual Basic
License & Privacy
Apache
Privacy Terms
Technical
Version
0.0.1Updated
October 8, 2020Works with
Studio: 19.10.4 - 22.10
Certification
Silver Certified
Support
UiPath Community Support