In this article, we will see how to open files or folders automatically when Windows starts. There may be some files or folders that you open after starting your system. For example, if you are a student, you might open some of your documents or the folder containing your documents at system startup; if you are a graphics designer, you might open some images or the folder containing your data at system startup, etc. Microsoft has made this simpler for you by creating the Startup folder.

The Startup folder is a folder that is used to open programs, files, and folders automatically on system startup. If you open the same files or folders at system startup, you can simplify this by using the Windows Startup folder.
How to open Files or Folders automatically when Windows starts
You can open files or folders automatically when Windows starts via:
- The Startup folder
- The Task Scheduler
Below, we cover the methods in detail.
How to open Files automatically when Windows starts via the Startup folder
As mentioned earlier, you can use the Startup folder to open those programs, files, and folders that you usually open after turning on your system. To open then automatically when you start your system, place them in the Startup folder.
The steps to do this are as follows:

- Press the Win + R keys to launch the Run command box.
- Type shell:startup and click OK. This will open the Startup folder.
- Copy the files you want to open at system startup.
- Paste the copied files into the Startup folder.
After performing the above steps, Windows will automatically open the files in the Startup folder every time you turn on your system. If this does not work, you have to place the file shortcuts in the Startup folder. Follow the steps below:

- Right-click in the empty space on your Desktop.
- Go to “New > Shortcut.”
- Click on the Browse button and select the file, the shortcut of which you want to create.
- Click Next.
- Rename your shortcut (if you want to do so).
- Click Finish.
After creating the shortcut for the files, copy them and paste them into the Startup folder. If you do not want to keep the shortcuts on your Desktop, you can use cut and paste instead of copy and paste.
How to open Folders automatically when Windows starts via the Startup folder
To open folders automatically every time you turn on your system, follow the steps provided below:

- Right-click on the folder the shortcut of which you want to create and go to “Send to > Desktop (Create Shortcut).” If you are a Windows 11 user, select Show more options after right-clicking on the folder. After that, you will see the “Send to” option in the context menu.
- After creating the folder shortcut, copy it to your desktop.
- Open the Startup folder by following the steps described above.
- Paste the copied folder into the Startup folder.
Now, every time you start your system, Windows will automatically open the folders in the Startup folder.
Read: How to enable and disable the startup sound in Windows 11.
How to open Files automatically when Windows starts via Task Scheduler
Task Scheduler is a useful tool on Windows devices that lets users schedule tasks for specific dates and times. You can also use the Task Scheduler app to open files and folders automatically on system startup. Let’s see how to do that. Unlike the above method, the process for opening files and folders automatically when Windows starts is different in Task Scheduler.
The steps to create a task to open a file on system startup are written below:
- Open the Task Scheduler.
- Create a new folder for your custom tasks.
- Right-click on the right side and select Create New Task.
- Enter the name of your task.
- Define Triggers and Actions.
- Click OK.
Let’s see these steps in detail.
1] Click on Windows Search and type Task Scheduler. Select the Task Scheduler app from the search results.

2] When the Task Scheduler opens up, right-click on the Task Scheduler Library folder and select New Folder. The Task Scheduler Library folder is available on the left pane.

3] After creating the folder, select it. Now, go to “Action > Create Task.” A new window will appear on your screen. Type the name of your task under the General tab.

4] Select the Triggers tab and click on the New button. The New button is available on the bottom left side. A new window will appear. Select At Startup in the Begin the task drop-down. Click OK to save.
5] Select the Actions tab and click on the New button available on the bottom left side. In the Action drop-down menu, make sure that the “Start a program” option is selected.
To open a file on a Windows computer, you require a dedicated program. Without a program, you cannot open a file on your computer. Hence, if you want to open a file automatically when Windows starts, you have to add its default program to Task Scheduler. To do so, click the Browse button and select the program’s executable file. After selecting the program, you will see its complete path in the Program/script field in the Task Scheduler.

After adding the program’s path, you have to specify the full path to the file so that Windows will open it in the selected program automatically every time you start your system. For this, copy that path of your file and paste it into the Add arguments (optional) field. After pasting the file path, type its name along with its extension at the end of the path followed by a backslash. For example, if a PNG image file is placed in your F directory and the name of the file is xyz, the complete path that you have to type is as follows:
F:\xyz.png
In the path above, F is the location where the file is saved, XYZ is the file name, and png is the file extension. Click OK to save.
Now, Windows will open the file in the selected program automatically every time you start your computer. Do note that this method may not work for some programs. I have tried it on Paint.net software. After restarting my computer, Paint.NET was unable to open the file. After that, I scheduled the same file to be opened automatically on system startup on IrfanView and IrfanView opened the file without any error. If you also encounter an error, first check whether the Program/Script and Add arguments (optional) fields contain the full path. If the path is correct but you are getting an error, you can try another software or you can use the Startup folder method.
I also tried another method to open the files using Task Scheduler and this method worked perfectly for all types of files. You have to create a batch file and run it using Task Scheduler. The steps to do this are as follows:
- Open Notepad.
- Write a script to open a program.
- Define an argument to open a file in that program.
- Save that batch file.
- Open the Task Scheduler.
- Create a new task.
- Define Triggers and Actions.
- Click OK to save.
Let’s see all these steps in detail.
1] Open Notepad.
2] Write a script to open a program. The script is as follows:
Start C:\"program path\program.exe" "path of file\file name.extension"
Let’s understand the above script. Suppose you want to open a PDF file in Adobe Acrobat Reader from the batch file. First, you have to type the path to where Adobe Acrobat DC is installed on your computer. After that, type the name of its executable file, followed by the .exe extension, and then a backslash. This will open Adobe Acrobat DC but does not open the PDF file in Adobe Reader. To open a PDF file in Adobe Reader, you have to define an argument after the program path, followed by a space. In this argument, first type the file path; then type the file name with its extension, followed by a backslash. The script below will help you understand this more clearly.
Start C:\"Program Files\Adobe\Acrobat DC\Acrobat\Acrobat.exe" "F:\bedtime stories.pdf"
The script above shows the full path to Adobe Acrobat DC. In the argument, F represents the path of the PDF file, bedtime stories is the name of the PDF file, and .pdf is the file extension.
When you are done, save this file as a batch file. To do so, press the Ctrl + S keys and type filename.bat. Here, the filename is the name of your file and .bat is the extension. You can type any name instead of filename but the extension .bat should remain the same.
3] Open the Task Scheduler and select the folder that you have created to define custom tasks. Now, go to “Action > Create Task.” Give a name to your task under the General tab.

4] Select the Triggers tab and click on the New button. Select At Startup in the Begin the task drop-down. Now, select the Actions tab and click on the New button. Click on the Action drop-down menu and select Start a program. Click on the Browse button and select the .bat file that you have just created. Click OK to save.
Now, Windows will open the selected file on startup.
How to open Folders automatically when Windows starts via Task Scheduler
Now, let’s see how to open folders at system startup using Task Scheduler. The steps to do this are written below:
- Open the Task Scheduler.
- Create a new task.
- Enter the name of your task.
- Define Triggers and Actions.
- Click OK.
Let’s see all these steps in detail.
1] Open the Task Scheduler and create a new folder for your custom tasks. If you have already created a new folder, select that folder.
2] Double-click on the Task Scheduler Library folder to expand it and select the folder that you have created. Now, go to “Action > Create Task.” A new window will appear. Give a name to your task.
3] Select the Triggers tab and click on the New button. Click on the Begin the task drop-down menu and select At Startup from the list of options.
4] Select the Actions tab and click on the New button. Click on the Action drop-down menu and select Start a program. While opening a file on Windows startup via Task Scheduler, we entered the full path to the default program and the full path to the file. The same thing we will do here.

Here, the program to open the folder is the File Explorer. Therefore, type explorer.exe in the Program/script field and the path of the folder in the Add arguments (optional) field. Click OK to save.
Now, Windows will open the selected folder automatically every time you start your system.
Hope this helps.
Read: Stop apps from opening or running at startup in Windows.
How do I make a folder open on startup?
If you want to open a folder on startup, you can do so by adding its shortcut to the Startup folder or by scheduling a task for it in Task Scheduler. The former method is the easiest method. Simply create a shortcut to the folder you want to open at startup and paste it into the Startup folder. To open the startup folder, type shell:startup in the Run command box and click OK.
How do I make a program open when Windows starts?
The Task Scheduler app in Windows allows users to schedule tasks. You can use this Task Scheduler app to open a program when Windows starts. To do so, create a new task in the Task Scheduler and select the When the computer starts option if you are creating the Basic task or At startup if you are creating a new task. If you are searching for the easiest method to open a program when Windows starts, place the shortcut of that program in the Startup folder.
Read next: How to disable startup programs in Windows.