フィルターのクリア

Can you add new matlab script to windows 10 context menu?

6 ビュー (過去 30 日間)
Kevin D'silva
Kevin D'silva 2020 年 8 月 26 日
回答済み: Shubham Khatri 2020 年 9 月 4 日
When you right click in a folder and go to new, it would be very useful if we could create a new Matlab script.
I was able to set windows registry keys to open matlab from the right click context menu, but this just opens another instance of matlab, if matlab is already running.
I want it to just create a script, like you can do for a text document. Would be really useful. Any clues?
  3 件のコメント
Peter
Peter 2020 年 8 月 31 日
I'm trying to do the same thing. Can you explain how you did this?
Kevin D'silva
Kevin D'silva 2020 年 8 月 31 日
so go to your registry editor. firstly make up a back up of your registry because its just better if you do.
go to file->export and save a back up
then navigate to Computer\HKEY_CLASSES_ROOT\.m
right click on the .m folder and go to new->key
name it "ShellNew" without the quotes
right click on ShellNew and add a new string value, name this "NullFile" without the quotes
change the NullFile value to 1.
and that worked for me! Let me know if it works for you as well

サインインしてコメントする。

回答 (1 件)

Shubham Khatri
Shubham Khatri 2020 年 9 月 4 日
As you have mentioned, one way to do this is by adding a registry by following the above-mentioned steps. Another way is to merge the registry file attached with this answer. Both the operations will perform the same function. Make sure to create a backup before merging the registry.

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by