Hello ,
i tryed to do following. ( Use windows 7 64 Bit )
----------------------------------
per hand i started regedit goto HKEY_CLASSES_ROOT\Directory\Background\shell
create the new empty key with the name Scriptstart
inside this key , create a new key with the name command
an give command the value %script_dir%\scriptname.scp
if i close regedit it apears in the context menue. So that i can start
the script with
I tryed following but it didnt work.
RegistryWriteKey>HKEY_CLASSES_ROOT,Directory\Background\shell,Scriptstart,command
RegistryWriteKey>HKEY_CLASSES_ROOT,Directory\Background\shell\Scriptstart,command,%SCRIPT_DIR%\hello-world.scp
Can someone help....
Kind Regards
Oliver
Create registry key for context menu in System for a script
Moderators: JRL, Dorian (MJT support)
-
- Pro Scripter
- Posts: 60
- Joined: Tue Dec 22, 2009 9:51 am
- Location: Mannheim ( Germany )
- Contact:
Create registry key for context menu in System for a script
Oliver Hilger Mannheim
alias Olllllliii
alias Olllllliii
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
HKEY_CLASSES_ROOT requires administrator privileges for writing. So unless you are running Macro Scheduler as admin this will fail.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
-
- Pro Scripter
- Posts: 60
- Joined: Tue Dec 22, 2009 9:51 am
- Location: Mannheim ( Germany )
- Contact:
- Grovkillen
- Automation Wizard
- Posts: 1132
- Joined: Fri Aug 10, 2012 2:38 pm
- Location: Bräcke, Sweden
- Contact:
Re: Create registry key for context menu in System for a scr
I found this guide and thought I'd post it somewhere for others to read. Sorry for hijacking this thread.