Drag and drop file to exe or .lnk in same filelist windows?

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
manflesh
Junior Member
Junior Member
Posts: 10
Joined: 2008-06-18, 07:50 UTC

Drag and drop file to exe or .lnk in same filelist windows?

Post by *manflesh »

Is it possible in some way to drag a file to an .exe or .lnk (shortcut) file in TC?

For example if I have a .lnk file to regsvr32.exe in the same directory as the dll files I want to register?
User avatar
HolgerK
Power Member
Power Member
Posts: 5411
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Post by *HolgerK »

No, this isn't allowed for security reasons, to prevent incidental starting of executables during Drag&Drop operations.
But you can create a new button in the button bar by dragging the EXE file onto an empty space inside the button bar.
This new button can be used as drop target to start the EXE file with the dropped file as parameter.

HTH,
Holger

EDIT:
The following (Un)Register.reg -file for a context menu to register and unregister com-server may be helpful for you:

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\dllfile\shell]

[HKEY_CLASSES_ROOT\dllfile\shell\Register]

[HKEY_CLASSES_ROOT\dllfile\shell\Register\command]
@="\"regsvr32\" \"%1\""

[HKEY_CLASSES_ROOT\dllfile\shell\Unregister]

[HKEY_CLASSES_ROOT\dllfile\shell\Unregister\command]
@="\"regsvr32\" \"%1\" /u"


[HKEY_CLASSES_ROOT\ocxfile\shell]

[HKEY_CLASSES_ROOT\ocxfile\shell\Register]

[HKEY_CLASSES_ROOT\ocxfile\shell\Register\command]
@="\"regsvr32\" \"%1\""

[HKEY_CLASSES_ROOT\ocxfile\shell\Unregister]

[HKEY_CLASSES_ROOT\ocxfile\shell\Unregister\command]
@="\"regsvr32\" \"%1\" /u"


[HKEY_CLASSES_ROOT\exefile\shell]

[HKEY_CLASSES_ROOT\exefile\shell\Register]

[HKEY_CLASSES_ROOT\exefile\shell\Register\command]
@="\"%1\" /regserver"

[HKEY_CLASSES_ROOT\exefile\shell\Unregister]

[HKEY_CLASSES_ROOT\exefile\shell\Unregister\command]
@="\"%1\" /unregserver"
manflesh
Junior Member
Junior Member
Posts: 10
Joined: 2008-06-18, 07:50 UTC

Post by *manflesh »

Ok, this is how I do it right now, a shortcut as a button.
I'll take a look at the reg file you suggested.

Thanks!!
Post Reply