Method 1:(Provided from second article)
Using the commands — assoc and ftype
First, open the command line enviroment as admin and find the current setting for current file using assoc
assoc .txt
Here I get the output
.txt=txtfile
Second, set the association to desired program path
ftype txtfile="G:\Program Files\Windows NT\Accessories\wordpad.exe" "%1"
Noting that he “%1” is nessesary to bring the file as input to open the program.
Then, every time you click the file, you will open the desired program to open the file
Method 2: using the Nirsoft’s FileTypesMan
Download this useful progrma, open it, and find the target filetype(shown below):

In the lower area, click on the “open” entry, end edit hte open way (shown below)

And
edit the command-line path with desired program position, also remember
to add “%1” to set file name as input for the program, like below:

And next time clicking on the file should open with assigned program.
No hay comentarios:
Publicar un comentario