make dir with selected file name and move file into folder

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
TotalComa
Junior Member
Junior Member
Posts: 2
Joined: 2011-06-02, 07:50 UTC
Location: Estonia

make dir with selected file name and move file into folder

Post by *TotalComa »

That is what I do frequently when (for example) unpacking .rar files:

1. select file
2. F7 > ok
3. shift+drag file into created directory
4. open the folder

Would it be possible to simplify this procedure - i.e. create folder with selected file name and the file is already inside created folder?

OR

1. select many files
2. F7 > enter folder name > ok
3. move all files into folder

Thanks!
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

1. Create batch file SelMover.bat in TC folder with following contents:

Code: Select all

@echo off
title MoveTo
if -%2==- echo Params: "%%WL" "MoveTo Folder" & pause & goto :EOF
if not exist %2 md %2
for /f "usebackq delims=" %%f in (`type %1`) do move "%%f" %2
2. Use following buttonbar button:

Code: Select all

Command: %COMMANDER_PATH%\Addons\AskParam\AskParam.exe
Params: /c"Move files" /t"%O" /p"Enter folder name to move files to:" "%%COMMANDER_PATH%%\SelMover.bat" "%WL" "%%1"
WorkPath: leave empty
Icon, Hint: as you wish
Get AskParam from my signature.

It works with single file or selection, and suggests name of focused file as new folder name.
TotalComa
Junior Member
Junior Member
Posts: 2
Joined: 2011-06-02, 07:50 UTC
Location: Estonia

Post by *TotalComa »

Thank you! Will try this. :idea:
Post Reply