Windows 10

Batch File To Set Default Programs in Windows 10

In this tutorial, we are going to see how to set default programs in Windows 10. The batch file contains a series of DOS (Disk Operating System) instructions. It allows triggering the execution of commands found in this file.
 

Batch File To Set Default Programs in Windows 10

First, use Assoc to get the filetype:
 

 
Then use Ftype to set the default programs. In this case, we have associated the Notepad++ app with .txt file.

@echo off

Ftype txtfile=C:\Program Files (x86)\Notepad++\notepad++.exe %1

 

 
Once you know the file type you can associate it with an application. This would work for .pdf, .svg, .xml files, etc…
 

 

Leave a Reply

Your email address will not be published. Required fields are marked *