Yes, you can schedule folder creation in Windows with Task Scheduler, the built-in application for running tasks automatically. [1] Task Scheduler does not make folders by itself. It runs a script or command that creates the folder, at the times you choose. For a closer look, read Create Folders Automatically by Date in Windows.
That means a daily folder named for the date, or a new folder each week or month, can appear without you lifting a finger. One forum user wanted exactly this: a new folder every day, named with the current date, so they would not have to remember to make it. [2] The same approach works on both Windows 10 and Windows 11.
Task Scheduler lets you run a task daily, weekly or monthly, so you can match the schedule to how often you need a new folder. [1]
What should you prepare before scheduling?
Before you open Task Scheduler, make three decisions: where the folders go, how often they appear, and which account will create them. Settling these first keeps the later steps quick. To go further, see How to Create Folders From a Text File in Windows.
Pick the parent location and naming pattern
Choose one parent folder that will hold every new folder, such as C:\Work\Daily. A date works well as the name, because each run produces a unique, easy-to-sort folder. One forum user, for example, wanted a new folder every day inside an existing folder, named with that day’s date, to keep a record of the day’s work. [2]
Decide on the date format now, so your folders sort the way you expect. The script section covers how to build the name.
Decide how often it should run
Task Scheduler lets you choose how often a task runs, including daily, weekly or monthly. [1] Match this to how you work:
Daily for a folder per workday, like the work-record example above.
Weekly for a folder per week of projects or reports.
Monthly for statements, invoices or monthly archives.
Your choice also shapes the folder name. A daily task needs a full date, while a monthly one may only need the year and month.
Make sure the account can write there
The task runs under a Windows account, and that account must be allowed to create folders in your chosen location. Folders inside your own user profile, such as Documents, are usually the simplest choice. Protected locations such as the root of the system drive may refuse to let the task write.
Windows 10 and Windows 11
The Task Scheduler steps are the same in Windows 10 and Windows 11, and Microsoft’s folder guidance covers both. [3] Windows 10 is past its end of support, so Windows 11 is the better choice if your PC can run it.
How do you make the folder-creating script?
You need a short script that creates one folder at a full, fixed path, and that script is what Task Scheduler will run later. A typical goal is a new folder each day inside an existing folder, named with the current date [2]. A forum reply to that request said the job would require a script and Task Scheduler [2].
Pick the parent location. Choose the existing folder where the new folders should appear, for example a work folder where you keep daily records. Write its full path in the script, starting at the drive letter.
Write the script. Make it do one thing: create a folder inside that parent. If you want the date as the name, have the script read the current date and use it as the folder name, as the original poster wanted for a daily record [2]. The exact commands for this are in the batch and PowerShell articles of this series, which also cover dated naming in more detail.
Save it in a fixed folder. Put the script somewhere that will not move, such as a dedicated scripts folder in your Documents or on the C: drive. Task Scheduler will point to this exact location later, so renaming or moving the file breaks the task.
Run it once by hand. Double-click the script, or run it from a terminal window. Then open the parent folder and look for the new folder with the name you expected.
One limit is worth knowing. The forum thread’s solution used a Power Automate flow, and its author noted that with a free account the flow cannot run unattended [2]. A plain script run by Task Scheduler avoids that restriction, which is why this article uses one.
Once the manual run creates the folder correctly, the script is ready to be scheduled.
How do you create the scheduled task in Task Scheduler?
Use the Basic Task Creation Wizard in Task Scheduler: it walks you through naming the task, picking a schedule, and pointing it at your script.
Open Task Scheduler and start the wizard. Open Task Scheduler from the Start menu. In the left pane, select Task Scheduler Library. You can create the task in the main library folder, but a new subfolder keeps your tasks separate from system ones, so select New Folder in the right pane and name it (for example, “My Folder Tasks”). [1] Then select that folder and click Create Basic Task in the right pane. [1]
Enter a name and a simple description. When the wizard opens, type a name and a short description of what the task does. [1] Something like “Create Weekly Folder” with the description “Makes the new weekly folder in Documents” is enough to recognize it months later.
Choose the trigger and set the time. Decide how often the task should run: daily, weekly or monthly. [1] Pick the option that matches your folder plan, then set the start time. For a weekly project folder, choose Weekly, tick Monday, and set a time when the PC is normally on.
Choose to start a program. On the Action step, select Start a program. Click Browse and select the script you saved earlier, such as a
.bator.ps1file stored in a fixed folder. Use the full path to the file so the task can always find it.Finish and review the task. The last screen summarizes your name, trigger and action. Read it through, then click Finish. The task now appears in the folder you selected in Task Scheduler Library.
How do you check the recurring task works?
The fastest way to check a recurring task is to run it yourself instead of waiting for the next trigger. If the folder appears on demand, the script and the task setup are working.
Run the task manually
Open Task Scheduler and select the Task Scheduler Library. If you put your task in its own subfolder, as is recommended to keep it apart from system tasks, open that subfolder. [1]
Right-click the task and choose Run.
Open the parent location you picked and look for the new folder.
If you named folders by date, the folder should carry today’s date. Running the task twice in one day is also a useful test, because the script should not break when that day’s folder already exists. [2]
Check the last run result and history
Select the task and look at the Last Run Result column in the middle pane. A result of 0x0 means the task finished without an error. Any other code means something went wrong, and the code is worth searching for.
Open the History tab at the bottom of the task’s details to see each start and finish. If History is empty, it may be turned off. In that case, use Enable All Tasks History in the Actions pane on the right.
Common causes of failure
Moved script. The task points to a fixed file path. If you renamed or moved the script, the task finds nothing to run, so edit the task’s action to point to the new path.
Missing permissions. The account running the task must be allowed to write to the target location. A folder under another user’s profile or a protected drive can block it.
PC asleep or off. A task cannot run while the computer is off or asleep at the trigger time. If your PC is usually off at 7:00 AM, move the trigger to a time when it is on.
After fixing any of these, run the task manually again and confirm the folder appears.
What mistakes stop scheduled folders from appearing?
Most failures come down to three avoidable mistakes: a path that only works in one context, a name that already exists, and a trigger time when the PC is off.
Using a relative path instead of a full path
A scheduled task does not start from the folder you were in when you tested the script. A path like Reports\Today may resolve somewhere unexpected, so the folder appears in the wrong place or not at all. Use a full path such as C:\Users\Sam\Documents\Reports\Today, and use a full path for the script itself in the task’s program field.
Creating a folder with a name that already exists
If the script tries to make a folder that is already there, it can fail or report an error. This is common when the name is fixed rather than based on the date. A well-built flow checks whether the day’s folder was already created and only creates one if it was not. [2] Build the same check into your script, or give each run a unique name.
Scheduling at a time the computer is usually off
A task cannot run on a PC that is shut down or asleep at the trigger time. The wizard lets you pick daily, weekly or monthly, or a trigger tied to the computer starting or logging on. [1] If you are rarely at your desk at 6 a.m., choose a time you are normally working, or use a log-on trigger instead.
Keep it safe
Limit the script to creating folders. Do not add commands that delete, move or rename anything.
Test with a throwaway location, such as a new folder named
TestFolderson your desktop, before pointing the task at real data folders.Once the test folders appear as expected, switch the path to your real location.
Wrapping up your scheduled folders
Scheduled folders come down to three parts: a script that creates the folder, a Task Scheduler trigger that runs it, and one manual test run to prove the two work together. Once that test passes, the folder will keep appearing on its own.
If your needs change, you don’t have to start over. Open Task Scheduler, find your task in the Task Scheduler Library, and edit its trigger to switch from daily to weekly, or move the time. [1] Your next step is simple: run the task once today and look for the new folder.
