Interesantan rename fajlova

Interesantan rename fajlova

offline
  • Pridružio: 14 Nov 2003
  • Poruke: 324

Naime...
Imam folde ru kome se nalaze 195 foldera. U svakom tom folderu se nalazi po 28 fajlova (u nekom ima 25 a u nekom po 34 fajla, mislim da je nebitno za pricu).
Svi folderi imaju naziv tipa 001, 002, 003,...195.
Fajlovi u tim folderima imaju nazive tipa 1, 2, 3, 4...28.

Kako da svim fajlovima dam novo ime odnosno da im dodam prefiks foldera u kome se nalaze.
Na primer: da se svi fajlovi u folderu 001 zovu: 001-1, 001-2, itd...

Probao sam Total Commanderom da sa Ctrl+B obeležim sve fajlove i da i rinejmujem ali necu to. Total Commnader u tom slučaju sve fajlove koji su pod imenom 1, 2, 3 itd slaže pa ih posle bez reda rinejmuje.
Znači, treba mi da se u svakom folderu, tim 30-tak fajlova doda prefiks imena foldera.

Mučim se ceo dan.

Hvala unapred.



Registruj se da bi učestvovao u diskusiji. Registrovanim korisnicima se NE prikazuju reklame unutar poruka.
offline
  • Pridružio: 30 Dec 2007
  • Poruke: 4759
  • Gde živiš: Niš

http://beerpla.net/2008/03/12/mass-renaming-direct.....commander/
ovde nešto pomoću total comandera,sory to si već probao Embarassed



offline
  • Pridružio: 14 Nov 2003
  • Poruke: 324

Našao sam nešto interesantno...
http://www.bulkrenameutility.co.uk/Download.php

Free je i odlično radi sa masom fajlova.
Konkretno, ja sam imao ravno 5200 fajlova i odradio je za cirka 50 sec.

Ima tu i portable verzija (koja se ne instalira) a ima i 64-bitna verzija.

offline
  • Pridružio: 30 Dec 2007
  • Poruke: 4759
  • Gde živiš: Niš

zanimljivo programče Ziveli

offline
  • Pridružio: 10 Okt 2005
  • Poruke: 13526
  • Gde živiš: Beograd

Može to i sa Total Commanderom (a šta ne može? Smile )!
Help kaže ovo:
Here is a description of all available placeholders. IMPORTANT: Upper/lowercase is relevant!
[N] old file name, WITHOUT extension
[N2-5] Characters 2 to 5 from the old name (totals to 4 characters). Double byte characters (e.g. Chinese, Japanese) are counted as 1 character! The first letter is accessed with '1'.
[N2,5] 5 characters starting at character 2
[N2-] All characters starting at character 2
[N-8,5] 5 characters starting at the 8-last character (counted from the end of the name)
[N-8-5] Characters from the 8th-last to the 5th-last character
[N2--5] Characters from the 2nd to the 5th-last character
[N-5-] Characters from the 5th-last character to the end of the name
[2-5] Characters 2-5 from the whole name and extension (other numbers as in [N] definition)
[P] Paste name of the parent directory, e.g. when renaming c:\directory\file.txt -> pastes "directory".
Also working: [P2-5], [P2,5], [P-8,5], [P-8-5] and [P2-], see description of [N] above.
[G] Grandparent directory (usage: see [P]).
[E] Extension
[E1-2] Characters 1-2 from the extension (other numbers as in [N] definition)
[C] Paste counter, as defined in Define counter field
[C10+5:3] Paste counter, define counter settings directly. In this example, start at 10, step by 5, use 3 digits width.
Partial definitions like [C10] or [C+5] or [C:3] are also accepted.
[Caa+1] Paste counter, define counter settings directly. In this example, start at aa, step 1 letter, use 2 digits (defined by 'aa' width)
[d] Paste date as defined in current country settings. / is replaced by a dash
[Y] Paste year in 4 digit form
[y] Paste year in 2 digit form
[M] Paste month, always 2 digit
[D] Paste day, always 2 digit
[t] Paste time, as defined in current country settings. : is replaced by a dot.
[h] Paste hours, always in 24 hour 2 digit format
[m] Paste minutes, always in 2 digit format
[s] Paste seconds, always in 2 digit format
[U] All characters after this position in uppercase
[L] All characters after this position in lowercase
[F] First letter of each word uppercase after this position, all others lowercase
[n] All characters after this position again as in original name (upper/lowercase unchanged)
[[] Insert square bracket: open
[]] Insert square bracket: close (cannot be combined with other commands inside the square bracket!)
[=pluginname.fieldname.unit]
Insert field named "fieldname" from content plugin named "pluginname". "unit" may be an optional unit (if supported by that field), or a field formatter like YMD for date fields. You can use the [=?] Plugin button to insert plugin fields.
[=pluginname.fieldname.unit:4-7]
Same as above, but for partial strings (here: letters 4-7).


A slika ilustruje postupak:




Dakle, postupak je sledeći:
Folder u kome su fajlovi koje želiš da multi-preimenuješ tretiraš komandom Ctrl + B, i u polju za masku imena fajla ukucaš [P] ispred [N]. Time će svi fajlovi dobiti novo ime koje se sastoji od imena matičnog direktorijuma i originalnog imena fajla. Čak, možeš da budeš i kreativniji! Ako u polje za masku upišeš [G] [P] dobićeš nova imena fajlova koji će se sada zvati npr. Test 1 - 3_3_20[1].gif, Test 1 - 3_3_21[1].gif itd, odnosno u imenu će imati ime glavnog foldera, podfoldera u kome je fajl i ime samog fajla.

offline
  • Pridružio: 14 Nov 2003
  • Poruke: 324

SlobaBgd, hvala na tutorijalu. Ubuduće znam kako ću.
Veruj mi da sam čitao help ali možda i u brzini a možda i u neznanju dovoljno engleskog nisam skontao da je ovo moguće.
U svakom slučaju hvala.
Pozdrav

Ko je trenutno na forumu
 

Ukupno su 979 korisnika na forumu :: 32 registrovanih, 5 sakrivenih i 942 gosta   ::   [ Administrator ] [ Supermoderator ] [ Moderator ] :: Detaljnije

Najviše korisnika na forumu ikad bilo je 3466 - dana 01 Jun 2021 17:07

Korisnici koji su trenutno na forumu:
Korisnici trenutno na forumu: _Rade, A.R.Chafee.Jr., ajo baba, Apok, babaroga, Ben Roj, d bos, djuradj, DPera, FileFinder, gomago, ILGromovnik, kbobo, loon123, Lošmi, Lucije Kvint, mercedesamg, Milometer, MiroslavD, mkukoleca, nebojsag, Panter, pein, proka89, Recce, S-lash, Sir Budimir, TBF1D, Trpe Grozni, Tvrtko I, vathra, Zoca