ElaKiri Community
Downloads
Go Back   ElaKiri Community > General > ElaKiri Chat!
Reload this Page Document renaming problem
Reply
 
Thread Tools
(#1)
Old
MadushaD MadushaD is offline
Junior Member
MadushaD is an unknown quantity at this point
 
Posts: 1
Join Date: Dec 2017
Document renaming problem - 12-18-2017, 01:45 PM

I have a list of folders (3000 folders) with content on it. (only one image available at each folder)

Need to re-name each image from the relevant folder name.

E.g: -

what i have
Madusha (Folder)
123 (Image)

what i need
123 image needs to be renamed as Madusha
Reply With Quote
(#2)
Old
susithaqs's Avatar
susithaqs susithaqs is offline
Member
susithaqs will become famous soon enoughsusithaqs will become famous soon enough
 
Posts: 59
Join Date: Nov 2017
Location: Kazakhstan
Angry Bump - 12-18-2017, 03:08 PM


bump
Reply With Quote
(#3)
Old
GayanJeewantha GayanJeewantha is offline
Junior Member
GayanJeewantha has a little shameless behaviour in the past
 
Posts: 7
Join Date: Jan 2018
Location: Kegalle
Up rename - 01-04-2018, 09:09 PM

i have used python,
"""
import os

main_name = "MAHA RAWANA _ SIYATHA FM - EPISODE "
n_m_name = "MAHA RAVANA "
extention = ".mp3"
for counter in range(167):
if os.path.isfile(main_name + str(counter) + extention):
new_name = os.path.join( n_m_name + str(counter) + extention)
os.rename(main_name + str(counter) + extention, new_name)
print(main_name + str(counter) + extention + " >>> " + new_name)

"""
me theyenne file tikaka rename
meka wenas karoth hariyawe oya wedihata
Reply With Quote
(#4)
Old
GayanJeewantha GayanJeewantha is offline
Junior Member
GayanJeewantha has a little shameless behaviour in the past
 
Posts: 7
Join Date: Jan 2018
Location: Kegalle
Up os module - 01-04-2018, 09:11 PM

http://brisktopia.com/6NF4
Reply With Quote
(#5)
Old
ArunaTelshan's Avatar
ArunaTelshan ArunaTelshan is online now
Senior Member
ArunaTelshan is a jewel in the roughArunaTelshan is a jewel in the roughArunaTelshan is a jewel in the roughArunaTelshan is a jewel in the roughArunaTelshan is a jewel in the roughArunaTelshan is a jewel in the rough
 
Posts: 411
Join Date: Nov 2013
Location: Biyagama
01-04-2018, 11:24 PM

oyage folders okkoma eka folder ekak athulata dala ethana aluth text document ekak open karaganna.. ita passe me code eka eke paste karala rename.bat kiyala save karala run karanna. okkoma folder athule thiyena images e e foldare namin rename wenawa meken..

HTML Code:
@echo OFF
SETLOCAL EnableExtensions
for /F "delims=" %%G in ('dir /B /S "*.jpg"') do (
    for %%g in ("%%~dpG.") do rename "%%~fG" "%%~nxg.jpg"
)
pause
Reply With Quote
(#6)
Old
cedric1986's Avatar
cedric1986 cedric1986 is offline
Senior Member
cedric1986 is a name known to allcedric1986 is a name known to allcedric1986 is a name known to allcedric1986 is a name known to allcedric1986 is a name known to allcedric1986 is a name known to allcedric1986 is a name known to allcedric1986 is a name known to allcedric1986 is a name known to allcedric1986 is a name known to allcedric1986 is a name known to all
 
Posts: 22,763
Join Date: Apr 2012
Send a message via Skype™ to cedric1986
01-06-2018, 05:06 PM

3000 folders?
Reply With Quote
(#7)
Old
^Buddhika^'s Avatar
^Buddhika^ ^Buddhika^ is offline
Senior Member
^Buddhika^ is a splendid one to behold^Buddhika^ is a splendid one to behold^Buddhika^ is a splendid one to behold^Buddhika^ is a splendid one to behold^Buddhika^ is a splendid one to behold^Buddhika^ is a splendid one to behold^Buddhika^ is a splendid one to behold^Buddhika^ is a splendid one to behold^Buddhika^ is a splendid one to behold^Buddhika^ is a splendid one to behold^Buddhika^ is a splendid one to behold
 
Posts: 16,323
Join Date: Jun 2013
01-06-2018, 05:11 PM

win script
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright © 2006 - 2011 ElaKiri™ Beta2.Evo vBulletin, vBa iBproArcade Subdreamer I-Magic MKv

Page generated in 0.01856 seconds with 11 queries