Filter löschen
Filter löschen

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

6 Ansichten (letzte 30 Tage)
Kevin D'silva
Kevin D'silva am 26 Aug. 2020
Beantwortet: Shubham Khatri am 4 Sep. 2020
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 Kommentare
Peter
Peter am 31 Aug. 2020
I'm trying to do the same thing. Can you explain how you did this?
Kevin D'silva
Kevin D'silva am 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

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Shubham Khatri
Shubham Khatri am 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.

Kategorien

Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by