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

6 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by