Windows automation guide
How to automatically move
files into folders.
Learn how to automatically move files on Windows using PowerShell, Task Scheduler or a dedicated file organisation tool like TidyFile.
Quick answer
How automatic file moving works
Automatic file organisation works by checking files against a set of conditions and performing an action when a file matches. The basic process is:
You can build this yourself with scripts and Windows tools, or use a dedicated application that provides the same workflow through a graphical interface.
What can you automate?
Automatic file moving
has plenty of uses.
The same basic idea can be applied to many different file organisation workflows.
Downloads
Move downloaded documents, images, archives and installers into separate folders automatically.
Invoices
Move files with specific names or patterns into a dedicated invoices folder.
Screenshots
Keep screenshots and other image files out of your main Downloads or Desktop folders.
Project files
Automatically move files associated with a project into the folder where they belong.
The basic concept
Look for something.
Then do something with it.
Almost every automatic file-moving system follows the same basic pattern. A folder contains files, a rule checks those files, and a matching file triggers an action.
Source
Downloads
Condition
Matches rule
Action
Move file
Method 1
Use PowerShell
to move files.
If you're comfortable with the command line, PowerShell can move files based on conditions you define.
For example, this script finds PDF files in Downloads and moves them into a PDF folder.
$source = "$env:USERPROFILE\\Downloads"
$destination = "$env:USERPROFILE\\Documents\\PDFs"
Get-ChildItem $source -Filter *.pdf -File |
Move-Item -Destination $destinationThe limitation
The script only runs when you run it. To make this happen automatically, you need another mechanism to run the script regularly or respond to new files.
Method 2
Combine PowerShell
with Task Scheduler.
Windows Task Scheduler can run your PowerShell script at a schedule. For example, you could run the script every few minutes, every hour or when you log in.
File appears
Task Scheduler waits
Script runs
Rule is checked
File is moved
Method 3
Use TidyFile
without writing code.
If you want the same kind of rule-based automation without maintaining scripts and scheduled tasks, TidyFile provides a graphical way to create your file organisation rules.
Choose where to look
Select the directory containing the files you want TidyFile to organise.
Create your conditions
Build conditions that determine which files should be matched by the rule.
Choose the action
Tell TidyFile what should happen when a file matches, such as moving it to another folder.
Let it run
Once the rule is active, TidyFile handles the repetitive organisation in the background.
Real examples
What could you
automatically move?
Here are some simple workflows you can build around common file organisation problems.
Move PDFs
Move installers
Move invoices
Move project files
Which approach is right for you?
Manual, scripts or automation software?
| Approach | Easy to set up | Automatic | Custom rules | Coding |
|---|---|---|---|---|
| File Explorer | ✓ | — | — | — |
| PowerShell | — | ✓ | ✓ | Required |
| Task Scheduler | — | ✓ | ✓ | Usually |
| TidyFile | ✓ | ✓ | ✓ | — |
Frequently asked questions
Automatic file moving FAQ
Can Windows automatically move files into folders?
Yes. Windows can be used with scripts and tools such as PowerShell and Task Scheduler to automate file movement. The downside is that setting up and maintaining those workflows can require some technical knowledge.
Can I automatically move downloaded files?
Yes. You can create rules that watch your Downloads folder and move matching files into other folders. This is useful for separating documents, images, archives, installers and other downloads.
Can I move files automatically based on their name?
Yes. A file name can be used as part of an automation rule. For example, files containing the word 'invoice' could be moved into an Invoices folder.
Can PowerShell automatically move files?
Yes. PowerShell can find files matching particular conditions and move them with commands such as Get-ChildItem and Move-Item. To make the process run automatically, you can combine a PowerShell script with Task Scheduler.
Can I automatically move files without coding?
Yes. A file organisation application such as TidyFile provides a graphical way to create rules without writing and maintaining PowerShell scripts.
Related guides
Keep improving
your file organisation.
Skip the scripts
Automatically move your files
without the busywork.
Create your rules once and let TidyFile handle repetitive file organisation in the background.
