# Is PATTERN="\*" needed with FROM="{filepath}\\\*\\\*" and TO?

**URL:** <https://resource.dopus.com/t/is-pattern-needed-with-from-filepath-and-to/60712>\
**Category:** Help & Support\
**Tags:** commands\
**Created:** [October 17, 2026, 2:12pm UTC](https://resource.dopus.com/t/is-pattern-needed-with-from-filepath-and-to/60712 "2026-10-17T14:12:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![WKen](https://resource.dopus.com/letter_avatar_proxy/v4/letter/w/eb9ed0/32.png) [@WKen](https://resource.dopus.com/u/WKen)\
**Post date:** [October 17, 2026, 2:12pm UTC](https://resource.dopus.com/t/is-pattern-needed-with-from-filepath-and-to/60712/1 "2026-10-17T14:12:55Z")

</div>

I'm using these commands to move subfolders into their parent folders:

`Rename FROM="{filepath}\*\*" TYPE=dirs TO="{filepath}*" AUTORENAME RECURSE`

`Rename FROM="{filepath}\*\*" TYPE=dirs PATTERN="*" TO="{filepath}*" AUTORENAME RECURSE`

Both work. Is `PATTERN="*"` necessary?

---

<div class="post-metadata">

**Author:** ![lxp](https://resource.dopus.com/user_avatar/resource.dopus.com/lxp/32/33734_2.png) [@lxp](https://resource.dopus.com/u/lxp)\
**Post date:** [October 17, 2026, 2:53pm UTC](https://resource.dopus.com/t/is-pattern-needed-with-from-filepath-and-to/60712/2 "2026-10-17T14:53:51Z")

</div>

No. You are exclusively renaming folders that don't have an extension.

---

<div class="post-metadata">

**Author:** ![WKen](https://resource.dopus.com/letter_avatar_proxy/v4/letter/w/eb9ed0/32.png) [@WKen](https://resource.dopus.com/u/WKen)\
**Post date:** [October 17, 2026, 3:26pm UTC](https://resource.dopus.com/t/is-pattern-needed-with-from-filepath-and-to/60712/3 "2026-10-17T15:26:36Z")

</div>

It seems this can only be used in a script object. I replaced that line, and the files in the subfolders of each selected folder were moved to the root of their respective selected folders.

 ![image](https://resource.dopus.com/uploads/default/original/3X/8/d/8db873407300ab1cde8262d3ab648ff9fa1b6ffc.png)

👀
