English Amiga Board


Go Back   English Amiga Board > Support > support.Other

 
 
Thread Tools
Old 16 February 2021, 04:28   #1
squirminator2k
Dream17 / PortsCenter guy
 
squirminator2k's Avatar
 
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:
rename "YOULLR~1.IFF" as "converted/Threat.3"

I get the error:
Destination "converted/Threat.3" is not a directory.

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?
squirminator2k is offline  
Old 16 February 2021, 04:49   #2
squirminator2k
Dream17 / PortsCenter guy
 
squirminator2k's Avatar
 
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.
squirminator2k is offline  
Old 16 February 2021, 05:15   #3
Samurai_Crow
Total Chaos forever!
 
Samurai_Crow's Avatar
 
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.
Samurai_Crow is offline  
Old 16 February 2021, 06:58   #4
squirminator2k
Dream17 / PortsCenter guy
 
squirminator2k's Avatar
 
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.
squirminator2k is offline  
Old 16 February 2021, 07:01   #5
Samurai_Crow
Total Chaos forever!
 
Samurai_Crow's Avatar
 
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.
Samurai_Crow is offline  
Old 16 February 2021, 07:24   #6
squirminator2k
Dream17 / PortsCenter guy
 
squirminator2k's Avatar
 
Join Date: Aug 2004
Location: Los Angeles
Age: 37
Posts: 311
Quote:
Originally Posted by Samurai_Crow View Post
~ is an AmigaDOS wildcard for "not". ~(#?.info) means all the files that aren't icons.
Ah, that'll do it. Good to know for future endeavors!
squirminator2k is offline  
Old 16 February 2021, 08:38   #7
jPV
Registered User
 
jPV's Avatar
 
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"
jPV is offline  
 


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

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


All times are GMT +2. The time now is 16:44.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.07368 seconds with 15 queries