![]() |
| |||||||
Automation Anywhere Post messages and questions related to Automation Software here. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
|
Here is my task Loop through each file in a folder Rename FullPath\$FileName$.pdf to $FileName$_01.pdf End Loop The task completes with no errors, but nothing is renamed! I have full permissions to this particular folder and can easily rename the files manually. Any ideas? |
| |||
|
Hello, Try using system variable, $CurrentDirectory$ instead of defining the full path. $CurrentDirectory$ would contain the exact path define in 'Loop for each file in a folder'. Text format of task would appear as follows, Start Loop " Each File in C:\Temp\Temp1" If $Extension$ Equal To "pdf" Then Rename Files "$CurrentDirectory$\$FileName$.$Extension$" to "$FileName$_01.$Extension$" End If End Loop Also, attached is the task for your reference. |
| |||
| Quote:
|
| |||
|
Hello, This is really strange, we would like to see this actually. Can you please provide your contact number and best time of contact by opening the support case so we can see and resolve the issue quickly? Automation Anywhere - Open A Support Case |
| |||
|
Hello Pattybal, As we want to see the behavior of that task at our end, we want you to send us the task at support@automationanywhere.com so that we will be able to guide you with proper solutions. Please let us know. Thanks & Regards |
| |||
|
If the renamed file is on the local computer, it works fine. If the renamed file is on a network mapped drive, the command is ignored. The renamed file also needs the path and then it works. Does it supposed to work like that? The examples do not ask you for the path. |
| |||
|
Hello Pattybal, We apologize for the inconvenience. If the file that has to be renamed is on the network drive then you will have to specify the path to those files but if it is in the local drive then you don't have to type in the whole path as it gets easily accessible. The examples related to this requirement are stated for the local drive though we will make sure to describe the examples precisely. Thanks & Regards |
![]() |
| Thread Tools | |
| Display Modes | |
| |