# Move to Subfolders based on date

**URL:** <https://resource.dopus.com/t/move-to-subfolders-based-on-date/9173>\
**Category:** Help & Support\
**Created:** [February 1, 2010, 9:02am UTC](https://resource.dopus.com/t/move-to-subfolders-based-on-date/9173 "2010-02-01T09:02:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nandonakis](https://resource.dopus.com/letter_avatar_proxy/v4/letter/n/919ad9/32.png) [@nandonakis](https://resource.dopus.com/u/nandonakis)\
**Post date:** [February 1, 2010, 9:02am UTC](https://resource.dopus.com/t/move-to-subfolders-based-on-date/9173/1 "2010-02-01T09:02:52Z")

</div>

How would I go about running a command which would move selected files and folders into subfolders based on the file date?

Optionally I also will then want:  
\*option to group by day, week or month  
\*use file create date, modify date or the current system date

I am a perl coder, is my best bet to try and write something with the PerlScript guide at [[Rename scripts in JScript, VBScript and PerlScript](http://resource.dopus.com/t/rename-scripts-in-jscript-vbscript-and-perlscript/5480/1))  
or is there a native way to do it using the approach in [resource.dopus.com/viewtopic.php ... +thumbnail](https://resource.dopus.com/t/create-folder-s-based-on-filename-s-context-menu-button/8810/1)  
e.g.  
Copy MOVE FILE {filepath$} HERE CREATEFOLDER {file$|noext}

---

<div class="post-metadata">

**Author:** ![Cris](https://resource.dopus.com/user_avatar/resource.dopus.com/cris/32/25993_2.png) [@Cris](https://resource.dopus.com/u/Cris)\
**Post date:** [February 1, 2010, 9:28am UTC](https://resource.dopus.com/t/move-to-subfolders-based-on-date/9173/2 "2010-02-01T09:28:12Z")

</div>

Something like this (see Leo's reply): [[One button to move files to a new folder](http://resource.dopus.com/t/one-button-to-move-files-to-a-new-folder/6456/1)) ?

Or this: [[Move files by date](http://resource.dopus.com/t/move-files-by-date/3064/1))
