0001-TIPS Move file 2 dir (same name)

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
mikecosterus
Junior Member
Junior Member
Posts: 22
Joined: 2003-04-13, 08:23 UTC
Location: Austria

0001-TIPS Move file 2 dir (same name)

Post by *mikecosterus »

to sort out, order and clean the downloaded (zip) files, I loose a lot of time to make directories and copy the downloaded file into them..
therefore I made this TC botton:

button27=shell32.dll,147
cmd27=[specify your dir\]mdd.bat
param27=""%T%O" %P%N"
menu27=Move File to Directory with same name


you can copy this in your DEFAULT.BAR (the number button has to be changed to your last number..in this example it is 27) So if your new button number is for instance 12 them change into:

button12=shell32.dll,147
cmd12=[specify your dir\]mdd.bat
param12=""%T%O" %P%N"
menu12=Move File to Directory with same name


OK! now create the mdd.bat file in the [specify your dir\] from cmd12:

md %1
cd %1
move %2 %1


that's all!

See what happens in the 2 panels if you press the button:
There should be a directory made with the selected file's filename without extension, and the selected file is moved in it!

I'm happy to hear your tip! (hey why not title it 0002-TIPS?) :lol: hahaha!
Let's get the tips started!

Mike
Last edited by mikecosterus on 2003-04-13, 18:25 UTC, edited 1 time in total.
User avatar
pdavit
Power Member
Power Member
Posts: 1529
Joined: 2003-02-05, 21:41 UTC
Location: Kavala -> Greece -> Europe -> Earth -> Solar System -> Milky Way -> Space
Contact:

Post by *pdavit »

Excellent tip Mike! Thanx!

And of course you can have the same (similar) outcome if you select all the zipped files then hit Alt+F9 and from the pop-up dialog box tick the option "Unpack each archive to a separate subdir (name of the archive)."

The difference here is that you store the files unpacked instead of the initial zipped form. ;)

This is feasible though for zip files only and if the downloaded applications are in another form e.g. exe you cannot use the aforementioned feature. It’s there where your tip becomes useful!!! :D

Maybe Christian could consider to add an option in the copy dialog box under the Options button or with a tick box or even with a new internal command and a corresponding keyboard shortcut to perform the very same thing you suggested here. It's a feature wanted to be used by many users I believe so it will be a welcome addition.

Actually I’ve just started a poll for this feature here: http://ghisler.ch/board/viewtopic.php?p=5264#5264
"My only reason for still using M$ Window$ as an OS is the existence of Total Commander!"
Christian Ghisler Rules!!!
User avatar
mikecosterus
Junior Member
Junior Member
Posts: 22
Joined: 2003-04-13, 08:23 UTC
Location: Austria

Post by *mikecosterus »

The ALT-F9 is often used by me...but I couldn't get the "unpack each archive to a separate subdir" to be set as STANDARD... :cry:
Therefore this "solution", better: workaround

next TIP: swap 2 filenames!

ciao,
MIKE
shammat
Senior Member
Senior Member
Posts: 253
Joined: 2003-04-11, 23:13 UTC

Post by *shammat »

Swap 2 filenames shouldn't be complicated

swap.cmd
-------------------------------------------
ren %1 "Temp_Swap_"%1
ren %2 %1
ren "Temp_Swap_"%1 %2
-------------------------------------------

Regards
Thomas
User avatar
mikecosterus
Junior Member
Junior Member
Posts: 22
Joined: 2003-04-13, 08:23 UTC
Location: Austria

Post by *mikecosterus »

Sort of, yeb. Check my second TIP (0002-TIPS)

http://www.ghisler.ch/board/viewtopic.php?t=731&highlight=

Mike
Post Reply