English Amiga Board


Go Back   English Amiga Board > Support > support.Apps

 
 
Thread Tools
Old 28 October 2018, 09:47   #1
logical
Registered User
 
Join Date: Feb 2018
Location: Germany
Posts: 5
LHA with # in folder name

Hi,
I am trying to write an axrexx script to automatically unpack all WHDLoad archives.
We have a folder (e.g. in Demos or Games) called '#', which LHA (and other tools too) isn't dealing with (can't open both output and input files (probably due to the fact this character introduces wildcard patterns).

2 Issues:
  1. Input file
    With the input file I have a (ugly?) workaround by replacing the '#' with '[#]' (which basically is a wildcard replacement).
  2. Output folder
    LHA isn't dealing with the output folder name '#', it complains.
    Here I currently replace the '#' by '0', but I would like to keep the original name.
    Any Ideas ?
The LHA command here (without any replacements) looks like
LHA -mr x "Commodore_Amiga_-_WHDLoad_-_Demos/#/1whatever.lha" #? "unpacked/Demos/#/1whatever/"


So what possibilities do I have to read and write with LHA to folders with '#' (I would like to keep the folder name) ? Some possibility to "escape" this character ?

Last edited by logical; 28 October 2018 at 09:57.
logical is offline  
Old 28 October 2018, 13:39   #2
daxb
Registered User
 
Join Date: Oct 2009
Location: Germany
Posts: 3,304
Rename "#" to something useful. The OS3.1 DOS file naming convention (3-7) says to avoid such chars as directory and file name. If you hold "#" you will sooner or later fall in trouble again.
daxb is offline  
Old 01 November 2018, 16:48   #3
logical
Registered User
 
Join Date: Feb 2018
Location: Germany
Posts: 5
yes, I would aggree.
The problem is these characters are currently part of the WHDLoad folder structure.
The same issue I have with the "(Beta & Unreleases)" folders due to the '(...)' construct.

Best would be to change the names in these ftp://grandis.nu/Commodore_Amiga/Retroplay folders:
  • Commodore_Amiga_-_WHDLoad_-_Games_(Beta_&_Unreleased)
  • Commodore_Amiga_-_WHDLoad_-_Demos/#
  • Commodore_Amiga_-_WHDLoad_-_Games/#
logical is offline  
Old 01 November 2018, 18:04   #4
Retroplay
Lemon Curry ?
 
Retroplay's Avatar
 
Join Date: Sep 2004
Location: Denmark
Age: 49
Posts: 4,085
To make it easier, I'll just rename those folders to 0.

Does [ ] work better than ( ) in the Beta & Unreleased folder name ?

Last edited by Retroplay; 01 November 2018 at 18:26.
Retroplay is online now  
Old 01 November 2018, 20:54   #5
daxb
Registered User
 
Join Date: Oct 2009
Location: Germany
Posts: 3,304
Naming convention say avoid this:
Code:
, * ( ) ? ` # [ ] < > ~ | $ " %
daxb is offline  
Old 01 November 2018, 21:01   #6
Retroplay
Lemon Curry ?
 
Retroplay's Avatar
 
Join Date: Sep 2004
Location: Denmark
Age: 49
Posts: 4,085
Righty-o, renamed to "Commodore Amiga - WHDLoad - Games - Beta & Unreleased"

Hopefully that should take care of business.
Retroplay is online now  
Old 01 November 2018, 23:30   #7
logical
Registered User
 
Join Date: Feb 2018
Location: Germany
Posts: 5
perfect - this make things much easier.
+1
logical 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
Zipping a folder's content without the folder itself Frankie support.Apps 0 14 September 2017 08:28
Can't find the C: folder? Sanxion Retrogaming General Discussion 7 17 July 2017 18:12
How do I load a 'lha' folder into an Amiga emulator (E-UAE) DarkAvenger support.OtherUAE 5 21 February 2017 17:35
WHDLoad Folder? Enverex support.FS-UAE 3 02 October 2014 06:49
No storage folder available Emu Amiga project.ClassicWB 6 09 September 2010 16:52

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 19:22.

Top

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