TC Button bar and Batch

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Galajas
Junior Member
Junior Member
Posts: 5
Joined: 2018-02-07, 11:37 UTC
Location: Lithuania

TC Button bar and Batch

Post by *Galajas »

I have batch file which is move multiple files in to folder i create.
But when i select multiple files in to TC i have Marked files and one which cursor. And when i drag and drop on button - batch file, TC choose just file which cursor not all marked files.
If possible make that all marked files be moved?
Code Batch i use (from windows all works fine):

Code: Select all

@echo off
: start 



cd "%systemdrive%/Users/%username%/I hate/many/move"
set /p x= name of folder :
md "%x%"


If "%~1"=="" goto :end
:process
MOVE /-y "%~f1" "%systemdrive%/Users/%username%/Dropbox/Work by date/2018/%x%"


Shift
If "%~1"=="" goto end
Goto process
:end


REM pause
User avatar
Stefan2
Power Member
Power Member
Posts: 4158
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Post by *Stefan2 »

Not for a drag&drop job, but by just clicking the button.


- select your files

- click the button with %P%S or "%L" TC-Parameter
(press F1 in Button dialog to read more)

- the button will execute a batch which loop over each file
Example batch here > http://ghisler.ch/board/viewtopic.php?p=264686#264686




More questions?
 
Galajas
Junior Member
Junior Member
Posts: 5
Joined: 2018-02-07, 11:37 UTC
Location: Lithuania

Post by *Galajas »

Oh its so simple, thank you very much!
Post Reply