A Windows XP help forum. PCbanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » PCbanter forum » Microsoft Windows XP » The Basics
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

running context menu entry from commandline?



 
 
Thread Tools Display Modes
  #1  
Old January 9th 05, 03:23 PM
Dan
external usenet poster
 
Posts: n/a
Default running context menu entry from commandline?

Hi there,

I try to figure out the simplest method to start any context menu
(right-click menu) entry from a commandline or perhaps an automation tool.

I know I could use rundll32.exe for most of those entries. I could also get
myself a very complex automation tool that would do anything I like on my
WinXP.

But I really only need to run some entries from the context menu.

Any pointer is very much welcome..

Dan


Ads
  #2  
Old January 9th 05, 03:36 PM
Bert Kinney
external usenet poster
 
Posts: n/a
Default running context menu entry from commandline?

Hi Dan,

Customizing Right-Click Menu Options in Windows:
http://www.jfitz.com/tips/rclick_custom.html

Add or remove entries in the New objects list (ShellNew)
http://windowsxp.mvps.org/shellnew.htm

Manage the context-menu entries for folders, drives and Namespace
objects
http://windowsxp.mvps.org/context_folders.htm

Creating Context Menu Handlers
http://msdn.microsoft.com/library/de...nuhandlers.asp

--
Regards,
Bert Kinney [MS-MVP DTS]
http://dts-l.org/


Dan wrote:
Hi there,

I try to figure out the simplest method to start any
context menu (right-click menu) entry from a commandline
or perhaps an automation tool.

I know I could use rundll32.exe for most of those
entries. I could also get myself a very complex
automation tool that would do anything I like on my WinXP.

But I really only need to run some entries from the
context menu.

Any pointer is very much welcome..

Dan



  #3  
Old January 9th 05, 03:47 PM
Dan
external usenet poster
 
Posts: n/a
Default running context menu entry from commandline?

Thanks Bert,

I checked the links. Thanks. Unfortuantely, this is not what I was looking
for.

I do not want to add/change/delete any context-menu entries..
I just want to run them without having to right-click on them.

For example, I do have the Layout.dll installed. That is, I can save and
restore my desktop Icon layout by right-clicking on the My Computer icon and
choose "Restore Desktop Icon Layout". So, for this I need to use the mouse
or keyboard-shortcuts.

Well I do not want to do this. I want to perform the same action from the
commandline. Without touching the mouse.

I know I can do similar things when the funtion I want is exposed to the
shell. In that sense I could use rundll32. But that is not possible for all
context entries. Layout.dll is one of those..

Again, what I search is a way to start any contex-menu entry from the
command line or a script.

Can that be done?

Dan


"Bert Kinney" wrote in message
...
Hi Dan,

Customizing Right-Click Menu Options in Windows:
http://www.jfitz.com/tips/rclick_custom.html

Add or remove entries in the New objects list (ShellNew)
http://windowsxp.mvps.org/shellnew.htm

Manage the context-menu entries for folders, drives and Namespace
objects
http://windowsxp.mvps.org/context_folders.htm

Creating Context Menu Handlers

http://msdn.microsoft.com/library/de...nuhandlers.asp

--
Regards,
Bert Kinney [MS-MVP DTS]
http://dts-l.org/


Dan wrote:
Hi there,

I try to figure out the simplest method to start any
context menu (right-click menu) entry from a commandline
or perhaps an automation tool.

I know I could use rundll32.exe for most of those
entries. I could also get myself a very complex
automation tool that would do anything I like on my WinXP.

But I really only need to run some entries from the
context menu.

Any pointer is very much welcome..

Dan





  #4  
Old January 9th 05, 06:20 PM
GTS
external usenet poster
 
Posts: n/a
Default running context menu entry from commandline?

Context menu handlers are stored in the registry and may invoke different
kinds of commands to execute their action. For example, as you note, if
that action is to launch a dll, you could use rundll32 as a command line.
Another context command might launch an exe with or without certain command
line parameters, etc. In theory, a program could be developed for use from
the command line that would look up the command for a particular shell
extension in the registry and execute it, but there is no native capability
in Windows to do this.
--

"Dan" wrote in message
...
Hi there,

I try to figure out the simplest method to start any context menu
(right-click menu) entry from a commandline or perhaps an automation tool.

I know I could use rundll32.exe for most of those entries. I could also
get
myself a very complex automation tool that would do anything I like on my
WinXP.

But I really only need to run some entries from the context menu.

Any pointer is very much welcome..

Dan




 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
activation/deactivation of the start menu MRU through the registry [email protected] Performance and Maintainance of XP 1 December 2nd 04 09:51 PM
Removing Items from Context Menu swlbc Windows XP Help and Support 8 November 24th 04 08:09 PM
Removing Items from Context Menu swlbc General XP issues or comments 2 November 24th 04 01:01 AM
Select All from context menu Greg Kamer General XP issues or comments 4 October 30th 04 03:00 AM
XP Pro - right click context menu hangs up Rob General XP issues or comments 1 September 15th 04 02:51 AM






All times are GMT +1. The time now is 07:37 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PCbanter.
The comments are property of their posters.