Who's Online
66 user(s) are online (
46 user(s) are browsing
Forums )
Members: 0
Guests: 66
more...
Headlines
stella.lha - emulation/gamesystem
Dec 25, 2025
amigagpt.lha - network/chat
Dec 22, 2025
flare-game.lha - game/action
Dec 21, 2025
shadernova.lha - graphics/misc
Dec 21, 2025
iptv85.lha - video/misc
Dec 21, 2025
dirmeup_demo.lha - utility/filetool
Dec 20, 2025
capslock_cmd.lha - utility/workbench
Dec 20, 2025
amiarcadia.lha - emulation/gamesystem
Dec 19, 2025
sdl3.lha - library/misc
Dec 19, 2025
vault.lha - network/misc
Dec 19, 2025
Topic options
View mode
Newest First
Rename script request
Posted on:
2021/5/15 15:24
#1
Just popping in
Joined: 2015/9/28 23:42Last Login
: 2024/2/25 18:04
From Bettendorf, IA, USA
Group:
Registered Users
Hi, guys! Long time no chat. I am looking for some help. I need a script to rename 600+ files. The filename has the date in it, I want to change the format. mark_ritter_31072020_1628_xxxx_yyy.jpg I want to change JUST the date format to: mark_ritter_2020-07-31_1628_xxxx_yyy.jpg leaving the rest of the filename the same. The date is in the same position for every filename. I would like an ARexx or DOS script. Put it in the drawer. Execute it. It scans in all the names and renames them. Thanks!!!
Re: Rename script request
Posted on:
2021/5/15 16:21
#2
Not too shy to talk
Joined: 2007/1/10 21:56Last Login
: 2025/12/24 15:32
From Stockholm Sweden
Group:
Registered Users
I wanted to do the same thing back in 2010 on A1XE with lots of photos and I succeded in doing so, but can I can't remeber exactly what i did.. Have some memory of making a Directory Opus script.. But can't find it on my X5000..
1989-> A500, A600, A3000, A4000, A1200, CD32, µA1, PegII, A1XE, CDTV, Amy/416D79, A1X5000, Vampire 500 V2+, Vampire 600 V2, Amy-ITX, Denise ITX <-2024
Anonymous
Re: Rename script request
@mritter0
Tested on a two file list, haven't had the will to create more files
*NOT* optimized!
/* */
ADDRESS COMMAND 'list mark#? lformat="%n" >filelist.txt'
OPEN ( fl , 'filelist.txt' , 'R' )
DO WHILE ~ EOF ( fl )
fn = READLN ( fl )
/*
Catch empty lines and skip them
*/
IF fn ~= ' ' THEN DO
fn_date = SUBSTR ( fn , 13 , 8 )
fn_date_day = SUBSTR ( fn_date , 1 , 2 )
fn_date_month = SUBSTR ( fn_date , 3 , 2 )
fn_date_year = SUBSTR ( fn_date , 5 , 4 )
fn_date = fn_date_year '-' fn_date_month '-' fn_date_day
fn_new = INSERT ( '..' , fn , 13 , 2 )
fn_new = OVERLAY ( fn_date , fn_new , 13 )
ADDRESS COMMAND 'rename ' fn ' as ' fn_new
END
END
CLOSE ( fl )
ADDRESS COMMAND 'delete filelist.txt'
EXIT 0
Re: Rename script request
Posted on:
2021/5/15 18:08
#4
Just popping in
Joined: 2015/9/28 23:42Last Login
: 2024/2/25 18:04
From Bettendorf, IA, USA
Group:
Registered Users
@Raziel Thank you! Worked perfectly! Appreciate it!
Anonymous
Re: Rename script request
@mritter0 yw, was fun to knock it together quickly
Re: Rename script request
Posted on:
2021/5/15 21:45
#6
Site Builder
Joined: 2006/12/2 23:57Last Login
: Yesterday 15:57
From Athens/Dublin
Group:
Registered Users Webmasters
Currently Active Users Viewing This Thread:
1
(
0 members
and 1 Anonymous Users
)