Context Menu "Open With"

Jul 12, 2008
286
0
Las Vegas, NV
Maybe I'm just not seeing it, but is there a way to have an "open with" on a right-click menu for files in Take Command?

Regards,
Chuck Billow
 
Nov 2, 2008
231
2
The shell integrate thing that comes with 4nt does this for cmd files as well as btm files. I use it to run EXTPROC batches under cmd.exe shell.

You may look at http://www.maddogsw.com/cmdutils/ , which has utilities for context and propsfor, which opens the context menu, and properties sheet for any file it is "sent to", ie context myfile.jpg will open the properties sheet for that app.
 
Jul 12, 2008
286
0
Las Vegas, NV
The shell integrate thing that comes with 4nt does this for cmd files as well as btm files. I use it to run EXTPROC batches under cmd.exe shell.

You may look at http://www.maddogsw.com/cmdutils/ , which has utilities for context and propsfor, which opens the context menu, and properties sheet for any file it is "sent to", ie context myfile.jpg will open the properties sheet for that app.

I will...thanks.

Regards,
Chuck
 
May 20, 2008
11,400
99
Syracuse, NY, USA
Maybe I'm just not seeing it, but is there a way to have an "open with" on a right-click menu for files in Take Command?

Regards,
Chuck Billow
As far as I know you get the same context menu in TCMD that you get in Explorer. I doubt there's any way to change that (because TCMD uses Explorer).
 
May 20, 2008
11,400
99
Syracuse, NY, USA
Off-topic, new to me, and mildly interesting ... Windows 10 has OPENWITH.EXE which will present a GUI app selector ... prettier than the "Open with" context menu but with the same apps. OPENWITH.EXE's notion of current directory is your profile directory, so give it a full path to the target file.

My SYSUTILS plugin has SHELLEX, which can invoke registered verbs (plus "Properties") and PROPS which is just a wrapper for "shellex /c /v properties". SHELLEX fails (no surprise) when given "Open with". So I thought I'd try to figure out the "Open with" mechanism. Using ProcessMonitor, right-clicking a txtfile caused about 6500 registry events to be recorded. Moving the mouse to "Open with" (which expands itself) gave another 3000 events. I gave up.
 
May 20, 2008
11,400
99
Syracuse, NY, USA
This works too (only tested on Win7).
Code:
 echo %@winapi[shell32.dll,OpenAs_RunDLLW,NULL,NULL,v:\savedcommands.txt,0]
 
May 20, 2008
11,400
99
Syracuse, NY, USA
This works too (only tested on Win7).
Code:
 echo %@winapi[shell32.dll,OpenAs_RunDLLW,NULL,NULL,v:\savedcommands.txt,0]
And it doesn't work on Win10. It just fails silently. I'm very curious about why it fails. I couldn't find a signature for OpenAs_RunDLLW online. I dug it out of the SHELL32.PDB in the symbols directory for WinDBG on Win7. It looks like this (with its translation).

Code:
v:\> undecorate ?OpenAs_RunDLLW@@YGXPAUHWND__@@PAUHINSTANCE__@@PBGH@Z
void __stdcall OpenAs_RunDLLW(struct HWND__ *,struct HINSTANCE__ *,unsigned short const *,int)

I can't do the same on Win10. Can anyone determine the signature of OpenAs_RunDLLW on Win10?
 
May 20, 2008
11,400
99
Syracuse, NY, USA
I can't do the same on Win10. Can anyone determine the signature of OpenAs_RunDLLW on Win10?

Never mind; I got it. It's the 64-bit version of the same thing.
Code:
v:\> undecorate ?OpenAs_RunDLLW@@YAXPEAUHWND__@@PEAUHINSTANCE__@@PEBGH@Z
void __cdecl OpenAs_RunDLLW(struct HWND__ * __ptr64,struct HINSTANCE__ * __ptr64,unsigned short const * __ptr64,int)

But it's __cdecl. And @CAPI doesn't work! Hmmm! ... I wonder why.
 
Similar threads
Thread starter Title Forum Replies Date
samintz How to? Context Menu Support 1
Jay Sage Problem with Context Menu Copy+Paste+Run Key Assignment Support 7
CWBillow Context menu extensions for TCC/TCMD v18? Support 1
jbanaszczyk TCMD 16 - Context menu Support 3
vefatica Context menu "Add to watch"? Support 5
Joe Caverly The requested lookup key was not found in any active activation context Support 3
R Documentation Help Nit > bdebugger View Menu Support 0
S Debugger menu absent Support 10
R Changes to BDEBUGGER menu item keyboard shortcuts in v25 Support 2
R New Clear Buffer in TCMD Home Menu Support 2
vefatica Pasting into TCMD via right-click menu? Support 2
R How to? Change TCMD tab font size in window menu Support 3
fishman@panix.com How do I make the selections in the option menu sticky? Support 23
cgunhouse Ctrl + Shift keys and Paste (drop down menu and V) Support 4
w_krieger Background Menu Support 10
Mezlo menu batch file questions Support 25
C How to? create a JPSoft BTM menu to run custom custom batch files Support 2
D No "Format" in right-click menu for DVD Support 11
vefatica OT:Explain Win7's "start menu" folder? Support 17
P Lock Explorer/Menu/Tabbed tool Bar Support 2
D Always get shortcut in Start Menu folder Support 6
K popup menu size Support 2
A Cannot permanently remove Tabs toolbar using View menu - bug? Support 8
C Utilities menu has gone ? Support 7
B Keys in debug menu not working in bdebugger Support 1
M "Shortcut key" on Windows start menu shortcuts Support 5
H Edit/Debug menu item with alternate INI files Support 0
Phileosophos Is there any way to open the Take Command options dialog from the command line? Support 8
D Open Windows 10 Photos app from command line Support 11
R How to? Open Take Command at current folder Support 7
D everything /o does not open the option dialog Support 4
A How to? How do you launch TCC/LE using the already-open instance? Support 5
David Wilbanks How to make new tab open in same directory as previous tab? Support 4
C OT: Registry OPEN verb to start elevated... Support 2
epement Fixed Row/Col status bar flips continuously when 2 files open Support 4
S How to? Use Forum "feedback" button to open in a new tab Support 3
Mordachai Fixed Closing TCMD while IDE + Help Open = Crash Support 7
D How to? V15.00.30 -(help!) - Floating view windows don't open Support 1
C How to? Shell Window remains open Support 6
vefatica Open properties for .LNK? Support 16
Charles Dye IFTP, current directory, open new connection Support 0
E WAD Open handle on USB drive in TCC Support 3
R How to? can not open jvm.cfg help Support 2
fishman@panix.com Is there a way to get the HELP screen to open maximized? Support 4
daniel347x Open a bash shell in Take Command? Support 2
MBaas GUI-Tool for "File/Open" or tree (for use in batch-files) Support 3
P TCMD 11.0.28 does not open its window Support 15
M open Take Command here right-click? Support 2
T Open & Configure multiple TCC windows on STARTUP Support 4

Similar threads