Drop files on executable to run task?

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
Aebian
Junior Member
Junior Member
Posts: 12
Joined: 2016-06-20, 18:01 UTC

Drop files on executable to run task?

Post by *Aebian »

Hi TC,

Not sure what to search for, tried Google, no luck only posts I get is about copy & paste between panes.
My question is different:

Is there a way to set something in TC so I can just drag an item from e.g. the right pane onto an executable on the left pane so it executes the file with input from right? Windows Explorer can do that, can TC do that too?

Regards,

Alex
User avatar
Hacker
Moderator
Moderator
Posts: 13144
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Re: Drop files on executable to run task?

Post by *Hacker »

Aebian,
Short answer: No.
Long answer: https://www.google.com/search?q=drag+and+drop+to+exe+site%3Aghisler.ch

HTH
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
petermad
Power Member
Power Member
Posts: 16118
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Drop files on executable to run task?

Post by *petermad »

2Aebian
Not with drag and drop, but you can put this button in your buttonbar:

Code: Select all

TOTALCMD#BAR#DATA
%COMSPEC% /C
start "" %T%M %P%N
%COMMANDER_EXE%,2
Open file under cursor with program under cursor in opposite panel


-1
To make the button:
1. Mark the green text above (click SELECT ALL).
2. Copy it to the ClipBoard (press Ctri+C).
3. Right click on TC's buttonbar and choose "Paste".
If the file under the cursor in the opposite panel is not a program, then that file will de opened by its associated program (Windows association). If the cursor is on folder in the opposite panel, then Windows Explorer will be opened with that folder. If the file under is not associated, then an error message is shown.

I recommend setting:

Code: Select all

InactiveFocus=1
in the [Configuration} section of your wincmd.ini file to show selected file in opposite panel.

.
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Stefan2
Power Member
Power Member
Posts: 4281
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: Drop files on executable to run task?

Post by *Stefan2 »

Aebian wrote: 2019-11-23, 00:15 UTC... so I can just drag an item from e.g. the right pane
onto an executable on the left pane so it executes the file with input from right? ...
There are different solution, depending on your work flow.

F.ex. you can drag&drop an executable onto the buttonbar
and on that button you can drag&drop files to open. (if that executable supports d&d)

You can create/use several buttonbars, e.g. one as default like now and one for such special tasks.
"Nested bar Creator" can aid you on this.



Nested Button Bar Creator 2.00
Author: Taher Salem
https://totalcmd.net/plugring/bar_creator.html

https://www.ghisler.ch/wikide/index.php/Nested_Button_Bar_Creator
http://utceditors.totalcmd.net/tc_tools/nested_button_bar_creator/overview_de.htm

https://www.ghisler.ch/wiki/index.php/Buttonbar#Nested_Button_Bar_Creator_2.00
http://utceditors.totalcmd.net/tc_tools/nested_button_bar_creator/overview.htm






 
Post Reply