Switch files A<===>B
Moderators: Hacker, petermad, Stefan2, white
Switch files A<===>B
One of the features that would be useful is "switch files" feature. After you select two files, either from the same pane or both panes, then you activate the function and the two files would switch places.
- Vochomurka
- Power Member
- Posts: 816
- Joined: 2005-09-14, 22:19 UTC
- Location: Russia
- Contact:
Something like:
Parameters: %P %N %T %M
Attention: not tested!
Code: Select all
move %1%2 %3%2
move %3%4 %1%4
Attention: not tested!
Last edited by Vochomurka on 2013-04-11, 12:13 UTC, edited 1 time in total.
Single user license #329241
PowerPro scripts for Total Commander
PowerPro scripts for Total Commander
Vochomurka,
You need to rename first file, place second one instead of first and then place renamed first instead of second. Three moves total.
So, batch file:
With parameters %P%S %T%R. It will use two selected files of active panel (if selection exists in active panel), or focused one from active and selected from inactive (if selection exists in inactive panel), or just two focused files in panels.
You need to rename first file, place second one instead of first and then place renamed first instead of second. Three moves total.
So, batch file:
Code: Select all
move "%~1" "%~1.$$tmp"
move "%~2" "%~1"
move "%~1.$$tmp" "%~2"
- Vochomurka
- Power Member
- Posts: 816
- Joined: 2005-09-14, 22:19 UTC
- Location: Russia
- Contact:
The topic starter would say which option suits him.
Single user license #329241
PowerPro scripts for Total Commander
PowerPro scripts for Total Commander