Multiple commands w/ context menu registry entry?


B

Burma

I'm wondering if there is a way to execute multiple commands on a
right-click context menu item?

For example, for the .txt file type I have a right-click menu item named
"MyEdit". When I select that, I'd like the .txt file to open in both
notepad and another editor I use. Thanks
 
Ad

Advertisements

P

Pegasus [MVP]

Burma said:
I'm wondering if there is a way to execute multiple commands on a
right-click context menu item?

For example, for the .txt file type I have a right-click menu item named
"MyEdit". When I select that, I'd like the .txt file to open in both
notepad and another editor I use. Thanks

You can try and string along the two commands, e.g. like so:
notepad xxx.txt & MyEditor xxx.txt
or perhaps
cmd /c notepad xxx.txt & MyEditor xxx.txt

Alternatively you could place the two commands into a batch file which you
invoke via your menu item:
@echo off
start /b notepad "%1"
start /b MyEditor "%1"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top