Forum Discussion
Altera_Forum
Honored Contributor
11 years ago --- Quote Start --- This registry trick to enable invocation of the "Nios II command shell" seems to only work in Win7 explorer if invoked on a folder in the right file pane! Then the command prompt is started in the folder containg the folder you right-click on. I.e. the right pane's folder. If invoked in the left pane, it always has windows\system32 as current directory - not useful at all. Wish someone could explain how all this right-click stuff really works. Anyway, here is a small update of the registry script, adding discriptive information on how to use it at click-time and the latest Quartus path - which will change on next release of quartus and you will find you have to update once again.
Windows Registry Editor Version 5.00
@="NIOS II command shell here (Use in right pane only)"
@="\"C:\\Altera\\12.1\\nios2eds\\Nios II Command Shell.bat\"" --- Quote End --- Hello, Nice work and useful. In order not to change the path every time a Quartus version comes out you can use the environment variable: SOPC_KIT_NIOS2 So try this: Windows Registry Editor Version 5.00
@="NIOS II command shell here (Use in right pane only)"
@=hex(2):22,00,25,00,53,00,4f,00,50,00,43,00,5f,00,4b,00,49,00,54,00,
5f,00,4e,00,49,00,4f,00,53,00,32,00,25,00,5c,00,4e,00,69,00,6f,00,73,00,20,
00,49,00,49,00,20,00,43,00,6f,00,6d,00,6d,00,61,00,6e,00,64,00,20,00,53,00,
68,00,65,00,6c,00,6c,00,2e,00,62,00,61,00,74,00,22,00,00,00 It is the same as above, but uses an REG_EXPAND_SZ registry entry so it will know how to expand %SOPC_KIT_NIOS2% environment variable. There is no nicer way I know to write. Sorry.