# Rename a folder

**URL:** <https://community.automationedge.com/t/rename-a-folder/5155>\
**Category:** Process Studio\
**Tags:** rpa\
**Created:** [December 9, 2021, 9:26am UTC](https://community.automationedge.com/t/rename-a-folder/5155 "2021-12-09T09:26:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sManikandansampath](https://avatars.discourse-cdn.com/v4/letter/s/c57346/32.png) [@sManikandansampath](https://community.automationedge.com/u/sManikandansampath)\
**Post date:** [December 9, 2021, 9:26am UTC](https://community.automationedge.com/t/rename-a-folder/5155/1 "2021-12-09T09:26:14Z")

</div>

Need to rename a folder contains the file. Kindly suggest the same…

---

<div class="post-metadata">

**Author:** ![pranav.sharma](https://avatars.discourse-cdn.com/v4/letter/p/3e96dc/32.png) [@pranav.sharma](https://community.automationedge.com/u/pranav.sharma)\
**Post date:** [February 10, 2022, 6:25am UTC](https://community.automationedge.com/t/rename-a-folder/5155/2 "2022-02-10T06:25:38Z")

</div>

Hello @sManikandansampath !  
Please follow the below steps to rename the folder.

Step1: We intend to rename sample1 directory to sample2.  
 ![image](https://canada1.discourse-cdn.com/flex027/uploads/automationedge/original/2X/8/87d0392c29653ae0f3fc4558bb9977e14cc1087a.png)

sample1 directory contains one text file.  
 ![image](https://canada1.discourse-cdn.com/flex027/uploads/automationedge/original/2X/f/f001352c3c740ef7d2aa45640f667cee1cb84971.png)

Step2: Prepare workflow as below:  
 ![image](https://canada1.discourse-cdn.com/flex027/uploads/automationedge/original/2X/c/c11777ff4acb8a03e56db0f622b084dfce3e4271.png)

Step3: Open “Generate Rows” step and substitute value as below:

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/automationedge/original/2X/9/96d666ecef8d524bb0af8923b2329d8af15701da.png)

Step4: Open “Execute a process” step and substitute value as below:

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/automationedge/original/2X/2/2ddd72830e25374c82a40cce2dc052b4d8cd1889.png)

This step will execute the batch command to rename the directory.

**Output** : After executing the workflow we will get below output:

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/automationedge/original/2X/8/8f250ff0d296b0a8ca324f304a2c072f885f1126.png)
