Clear Filters
Clear Filters

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

6 views (last 30 days)
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 Comments
Peter
Peter on 31 Aug 2020
I'm trying to do the same thing. Can you explain how you did this?
Kevin D'silva
Kevin D'silva on 31 Aug 2020
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

Sign in to comment.

Answers (1)

Shubham Khatri
Shubham Khatri on 4 Sep 2020
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.

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!