16 February 2021, 04:28 | #1 |
Dream17 / PortsCenter guy
Join Date: Aug 2004
Location: Los Angeles
Age: 37
Posts: 311
|
AmigaDOS' Rename command - what am I doing wrong?
So as part of my Worms Armageddon conversion process, I'm trying to use a little DOS script-y thing to rename my converted files to the WormsDC standard. I'm converting from WAV to IFF using an old MS-DOS app running DOSBox, which means some of the filenames are getting contracted to things like rename YOULLR~1.IFF.
This is apparently causing issues using the Rename command in AmigaDOS, because when I try the command: I get the error:rename "YOULLR~1.IFF" as "converted/Threat.3" Every other file converts fine, I only get this error with files where there's a ~ in the filename. What am I doing wrong? I've tried it both with and without quotes and I get the same error. Any suggestions?Destination "converted/Threat.3" is not a directory. |
16 February 2021, 04:49 | #2 |
Dream17 / PortsCenter guy
Join Date: Aug 2004
Location: Los Angeles
Age: 37
Posts: 311
|
Update: I ended up finding this easier to do using a .BAT file in Windows, but I would still very much love to know what I'm doing wrong for future reference.
|
16 February 2021, 05:15 | #3 |
Total Chaos forever!
Join Date: Aug 2007
Location: Waterville, MN, USA
Age: 49
Posts: 2,186
|
Did the converted directory exist when you tried to rename into it? If not "makedir converted" beforehand would have fixed that. Otherwise slashes in filenames are illegal.
|
16 February 2021, 06:58 | #4 |
Dream17 / PortsCenter guy
Join Date: Aug 2004
Location: Los Angeles
Age: 37
Posts: 311
|
Yep, the directory exists and all of the other files renamed without issue - it's just the six-or-so with the ~ in the filename that didn't rename.
|
16 February 2021, 07:01 | #5 |
Total Chaos forever!
Join Date: Aug 2007
Location: Waterville, MN, USA
Age: 49
Posts: 2,186
|
~ is an AmigaDOS wildcard for "not". ~(#?.info) means all the files that aren't icons.
|
16 February 2021, 07:24 | #6 |
Dream17 / PortsCenter guy
Join Date: Aug 2004
Location: Los Angeles
Age: 37
Posts: 311
|
|
16 February 2021, 08:38 | #7 |
Registered User
Join Date: Feb 2008
Location: RNO
Posts: 1,006
|
And you can "escape" wildcards by using: '
For example: rename "YOULLR'~1.IFF" as "converted/Threat.3" |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Can't rename from Workbench | PaulG | support.Apps | 5 | 15 July 2020 01:41 |
Relics of Deldroneye - Rename | DamienD | HOL data problems | 1 | 01 January 2020 20:53 |
AmigaDOS: Open file with "default tool" from CLI | Steffest | support.Other | 8 | 08 February 2019 09:16 |
WB 1.1 disk rename error | JRoc | support.Apps | 9 | 18 September 2005 08:57 |
|
|