i´m in education for software developing and have to write some actions for our projects.
Now we need to register file associations (open file type *.xyz with this software abc, e.g. *.html with internet explorer or other).
We´re working with commands (command line) such as AddFile, NewShortcut etc.
I´ve looked in the documentation for commands, but no result :/
So i think i can implement this with an NewReg command, but i don´t know how to do this.
How does a command for this look like?
(To add an registry entry for open my filetype with my software automatically)
(I´m searching for the command byself, not a how to for add commands or something like this ^^)
Thanks for help (and sorry for my bad english, i´m from germany...),
Kagurame
Edit
I´ve created an associastion via regedit.exe at my computer (some test filetype to start a little test application which print out the given filename)
Now i´ve created the following command:
Code: Select all
NewReg -RegKey HKEY_CLASSES_ROOT\.aatga\* -Data aatga_auto_file
NewReg -RegKey HKEY_CLASSES_ROOT\aatga_auto_file\shell\open\command -Data "C:\Users\Kagurame\Desktop\Test\TestProj\TestProj\bin\Debug\TestProj.exe" "%1"i explain what i want to see:
In Root-namespace of registry i have my file types (named .type, in my example .aatga)
In some cases in registry they have at "Standard" value the value "mytype_auto_file".
In same namespace so we have a key named "mytype_auto_file" with subkeys listed in my example code (shell => open => command)
Here the "Standard"-value is
Code: Select all
"path_to_exe" "%1"
Have i include or escape this for -Data-Param or can i type it like my code example shows?
FOLLOW US
Get the latest news in Application Packaging