MarketplaceListingsSnippetSopra Steria - Create Current Day Folder

Sopra Steria - Create Current Day Folder

Bronze Certified

Snippet

0 reviews

14

Sopra Steria - Create Current Day Folder

Bronze Certified

Snippet

0 reviews

14


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

carouselImage0

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.

Benefits


Published: 08 Oct 2020 | Updated: 08 Oct 2020

Trusted Source


License

Apache 2.0


Code Language

Visual Basic


Runtime

.NET Framework


Tags

current date
folder
sub folder
today

Compatibility

2019.10.4


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


Similar Listings