To quickly create directories with the name equal to the current date through the Total Commander:
- At first, let’s create a cmd script that makes a directory with the desired name:
1 2 |
set dir_name=%date:~6,4%.%date:~3,2%.%date:~0,2% md "%1%dir_name%" |
In the first line of the script, the desired name for the directory is created in the format YYYY.MM.DD.
The second script line creates a directory with the specified name along the path passed in the input parameter %1
Save the script in a convenient place, for example, plugins subdirectory …\TotalCommander\Plugins\ with the name “cur_dur.cmd”.
- Drag this file onto the Total Commander panel to make a calling button for it.
- Right-click on it and select “Change …”
Type
1 |
%P |
in the “Parameters” field.
%P – is the path to the Total Commander active panel.
- Click OK to save the changes.
Now clicking this button creates a directory with the current data name in active Total Commander panel.