type file dont change??
Posted: 25 Jan 2022 14:30
Good night.
Today I have started to study ms-dos CMD. I have started with the assoc command.
For greater understanding I tried to do this thing.
I installed notepad++ and I asociate the extension .ntop=notepadfile.
Then with the command ftype I asociated the binary file that the system have to use for open this archive.
ftype notepadfile="C:\Program Files\Notepad++\notepad.exe" "%1" "%"
I recognize I dont undertand what is %1 and % but there is no errors in the console
------------------------------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------------------------------
In the picture we can see the system dont recognize the extension .ntop like notepadfile
I thought it was going to be automatic and with google there are many results that have nothing to do with what I am looking for.
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
I thought that the system would choose the program with which to open the file automatically. I know If I click in the change button I can select the specific program
but want to do this with commands line.
Thanks for your attention and sorry if my english is a little bad.
Today I have started to study ms-dos CMD. I have started with the assoc command.
For greater understanding I tried to do this thing.
I installed notepad++ and I asociate the extension .ntop=notepadfile.
Then with the command ftype I asociated the binary file that the system have to use for open this archive.
ftype notepadfile="C:\Program Files\Notepad++\notepad.exe" "%1" "%"
I recognize I dont undertand what is %1 and % but there is no errors in the console
------------------------------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------------------------------
In the picture we can see the system dont recognize the extension .ntop like notepadfile
I thought it was going to be automatic and with google there are many results that have nothing to do with what I am looking for.
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
I thought that the system would choose the program with which to open the file automatically. I know If I click in the change button I can select the specific program
but want to do this with commands line.
Thanks for your attention and sorry if my english is a little bad.