Is there any way to create a hotkey or button to do this:
after file selection, run the hotkey to move the selected files to a directory like C:\bak\UNIQUE_DIR
UNIQUE_DIR is different every time you run the hotkey. For example, it can be decided by the time when you run it.
If you run the hotkey at October 11, 2012, 08:15, then the directory
C:\bak\2012_1011_0815 would be created, and the selected files would be moved into it. The dir name doesn't have to be 2012_1011_0815, just a unique string is ok.
So any ideas?
How to create a hotkey or button to move files this way?
Moderators: Hacker, petermad, Stefan2, white
Re: How to create a hotkey or button to move files this way?
If you only have to handle file without extended unicode name, you can use tcbl to handle this:Adams wrote:Is there any way to create a hotkey or button to do this:
after file selection, run the hotkey to move the selected files to a directory like C:\bak\UNIQUE_DIR
UNIQUE_DIR is different every time you run the hotkey. For example, it can be decided by the time when you run it.
If you run the hotkey at October 11, 2012, 08:15, then the directory
C:\bak\2012_1011_0815 would be created, and the selected files would be moved into it. The dir name doesn't have to be 2012_1011_0815, just a unique string is ok.
So any ideas?
Download and install tcbl on totalcommander tools folder.
create a user command
Code: Select all
Command: %COMMANDER_PATH%\tools\tcbl\\tcbl.exe
parameters: -q %L set _backup="c:\bak\$T" $; md %%_backup%% $; cd /d %%_backup%% $( move "$f" "$n"
icon: ???
<unixtime> is the number of seconds since midnight January 1, 1970
If you want YYYY_MMDD_HHmmss you can use : $Y_$M$D_$t instead of $T
If you need more readability for your script use tcbl.ini and ask in tcbl forum for help if needed.....