Assume that you have a program named "table-explorer.exe".
And you want to open all ".csv" and ".sas7bdat" files using this program by default in Windows.
First you need to create a file extension association with the program via these commands:
reg add HKCU\SOFTWARE\Classes\.csv /d "table-explorer" /f
reg add HKCU\SOFTWARE\Classes\.sas7bdat /d "table-explorer" /f
And then register the application:
reg add HKCU\SOFTWARE\Classes\table-explorer\shell\open\command /d "\"C:\Path\to\table-explorer.exe\"" /f
No comments:
Post a Comment