[solved] create dirs and automove

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
chrizoo
Senior Member
Senior Member
Posts: 349
Joined: 2008-03-12, 02:42 UTC

[solved] create dirs and automove

Post by *chrizoo »

Hi.

Say I have a list of files:

Code: Select all

2000-12-28.html
2000-12-30.html
2001-05-09.html
2002-06-13.html
2002-06-18.html
2002-06-19.html
2003-04-07.html
2003-11-06.html
2004-02-05.html
2004-02-06.html
Is there a plugin available which would create these dirs automatically and move the files there?

Code: Select all

2001
2002
2003
2004
thank you!

PS: the file creation/modification timestamps are from the year 2008, so they are unusable for sorting. (Otherwise the Mover plugin could have been used: http://www.totalcmd.net/plugring/mover-eng.html )
Last edited by chrizoo on 2011-10-24, 22:49 UTC, edited 1 time in total.
User avatar
HolgerK
Power Member
Power Member
Posts: 5406
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Post by *HolgerK »

TC8.0 Beta can do this using the "Multi Rename Tool"
- mark the files
- call the MRT
- Rename mask: file name:

Code: Select all

[N1-4]\[N]
- [Start]

HTH
Holger
User avatar
chrizoo
Senior Member
Senior Member
Posts: 349
Joined: 2008-03-12, 02:42 UTC

Post by *chrizoo »

-
wow!
many thanks, Holger!
sorcar
Member
Member
Posts: 100
Joined: 2005-04-12, 17:45 UTC
Location: U.S.

Post by *sorcar »

@chrizoo: The autohotscipt in the link below is less elegant, but has greater flexibility (if you don't mind a little tweaking) and can be used by ones who have not migrated to TC8 yet. http://www.ghisler.ch/wiki/index.php/AutoHotkey:_Create_folders_from_filenames
User avatar
HolgerK
Power Member
Power Member
Posts: 5406
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Post by *HolgerK »

For those
who have not migrated to TC8 yet
and don't want to struggle with TC's control window names in AutoHotkey -> VBS solution
I know it's not as compact as the AHK script, but VBS is almost always available.

Regards
Holger
User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Post by *Balderstrom »

@HolgerK,
You don't have to necessarily fight with TC's control window names (granted that has gotten extremely worse in TC8+ - everything is Window#). Although you CAN fight with TC's control window names...

A few other options:
1) Use %L buttonbar variable, parse the resultant file.
2) Copy filenames (and or paths) to clip - parse the clip.
3) Use %S buttonbar var, launch cmd.exe (you now have the base path).
--- Parse the list of selected files in CMD or AHK.
4) Use ListBox controls to parse the file list (this works decently).
User avatar
Hacker
Moderator
Moderator
Posts: 13052
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Balderstrom,
that has gotten extremely worse in TC8+ - everything is Window#
Only in the 64-bit (Lazarus) version.

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Post Reply