MarketplaceStudioSnippetRename Files in a Folder

Create your first automation in just a few minutes.Try Studio Web

Rename Files in a Folder

Rename Files in a Folder

by Chandan Vishwakarma

Star

4

Snippet

Downloads

394

back button
back button
carouselImage0
next button
next button

Summary

Summary

This Snippet will rename all the files inside the folder specified.

Overview

Overview

This workflow will rename of all the files in the folder specified.

It will generate a Unique name for all the files keeping the file format same as original. (Unique format generated using 'DateTime' component. Also, a random number function can be used instead if required.)

*The naming format of the new file can be changed if required.

Current Renaming Format- in_NewFileName-File Number in the Folder-[in_DateFormat.milliseconds].existing file extension

Input Arguments:

in_FolderPath - Path of the folder where files to be renamed exist. (Required)

in_NewFileName - The string to be present in the new filename.(Optional) (default - FileName)

in_DateFormat - Date format to be present in new filename. [e.g ddMMMyyyy hh.mm.ss, yyyyMMdd hhmmss, etc.] (Optional) (default - ddMMMyyyy hh.mm.ss)

Note: Prefer keeping the 'hh.mm.ss' all the components in the name, so that it will create a unique name. (The Naming format defined should generate a unique name to avoid conflict)

Output Arguments:           

out_status - A String output with renamed status.

Features

Features

This will be beneficial if you have many files coming in with the same name. A simple plug and work workflow to keep all your data in a mannered format. Datetime naming format used to keep track of date modified.

Additional Information

Additional Information

Dependencies

No dependencies

Code Language

Visual Basic

Publisher

Chandan Vishwakarma

Visit publisher's page

License & Privacy

MIT

Privacy Terms

Technical

Version

1.0.0

Updated

February 18, 2020

Works with

Studio: 19.1 - 22.10

Certification

Silver Certified

Support

UiPath Community Support

Similar Listings