Let's say i want to select files with the same name and different extentions in two separate folders, how do i achieve this using TC?
Thanks in advance!

Moderators: Hacker, petermad, Stefan2, white
I remember we had utilized MUT for this:MVV wrote:copy selected names into clipboard, replace extension in text editor
Code: Select all
TOTALCMD#BAR#DATA
selectfilest
%O.*
totalcmd.exe,4
Select files with the same name in opposite panel
0
-1
Is it possible to modify this button/script to work with more files at once?petermad wrote:2Noisia
Copy this to clipboard:Thereafter right click on the button bar an choose "Paste"Code: Select all
TOTALCMD#BAR#DATA selectfilest %O.* totalcmd.exe,4 Select files with the same name in opposite panel 0 -1
I have tried this method, now I have the list of file names without extension in notepad, but how can I use this list for selecting all files with these names in a different folder?Stefan2 wrote:I remember we had utilized MUT for this:MVV wrote:copy selected names into clipboard, replace extension in text editor
- select the files
- open MUT (Ctrl+M)
- set name to [N] and extension to none
- click "Edit names..." to get the list of names without extension
.
Code: Select all
@echo off
title %~n0
if "%~1"=="" echo Parameters: "%%WL" & pause & goto :EOF
set $srcList=%1
set $dstList=%TEMP%\$first8CharsMasks.txt
if exist "%$dstList%" del "%$dstList%"
for /f "usebackq delims=" %%n in (`type "%$srcList%"`) do call :processFile "%%n"
start "" notepad.exe "%$dstList%"
goto :EOF
:processFile
set $name=%~n1
set $name=%$name:~0,8%
echo "%$name%*">>"%$dstList%"
Code: Select all
start "" notepad.exe "%$dstList%"
Code: Select all
clip < "%$dstList%"