24 August 2018, 06:05 | #1 |
Registered User
Join Date: Oct 2012
Location: Italy
Age: 49
Posts: 2,942
|
How to merge two or more files
I would like a simple way to merge two or more files
Something like file1 + file2 = file3 where file3 is exactly composed by file1 filesize + file2 filesize It would be great something that works like "merge" *.* megafile, where "merge" is the command i'm looking for :-) |
24 August 2018, 07:07 | #2 |
Registered User
Join Date: Feb 2008
Location: RNO
Posts: 1,007
|
AmigaOS comes with the Join command.
Examples from the shell: Join file1 file2 AS file3 Join file#? AS allfiles Join #? AS megafile Also DOpus has a builtin function for joining, and you can just select the files you want to join and click the button. |
24 August 2018, 08:03 | #3 |
Registered User
Join Date: Oct 2012
Location: Italy
Age: 49
Posts: 2,942
|
Ok, thanks jpv, it's already something good
But i'm not able to make work the join command with the "#?" special character It should means *.*, isn't it ? I get the error "can't open #?" .... what am i doing wrong ? |
24 August 2018, 09:39 | #4 |
Registered User
Join Date: Feb 2008
Location: RNO
Posts: 1,007
|
#? means all files with or without "." character, so practically the same as *.* on MSDOS. But if you only want files which exactly have the "." character, then #?.#? would be more exact, but that's probably not what you want
I think your problem is because AmigaOS 3.1 probably doesn't allow the destination file to be in the same directory, or empty files might cause problems too if trying to join them. I've more used to MorphOS nowadays and it doesn't have these problems... So, if you're joining files from some directory in HD, try for example this: Join #? AS RAM:megafile It should work when megafile goes to some other location than original files. The Join command doesn't allow to include the destination file in the joining process, and that probably happens with #?. |
24 August 2018, 09:52 | #5 |
Registered User
Join Date: Oct 2012
Location: Italy
Age: 49
Posts: 2,942
|
I tried with #? and #?.#? with or without :RAM directory
It never works I'm launching this command not from HD, anyway But from a folder on my PC which is seen by Amiga OS like DH1: Perhaps this can cause the issue |
24 August 2018, 10:25 | #6 |
Registered User
Join Date: Feb 2008
Location: RNO
Posts: 1,007
|
Well, works for me. I made a quick test under emulator with a very plain OS3.1 setup, here's a screenshot what I did. Did you have 3.1 or some older AmigaOS?
|
24 August 2018, 10:31 | #7 |
Registered User
Join Date: Oct 2012
Location: Italy
Age: 49
Posts: 2,942
|
3.1 ROM
Kickstart version 40.68 Workbench version 40.42 |
24 August 2018, 10:39 | #8 |
Registered User
Join Date: Aug 2014
Location: Brindisi (Italy)
Age: 70
Posts: 8,252
|
Try these tools, they work very well, I for example often use JoinSplitter to create Double-PNG icons (I combine two images)
Create Double-Sided Icon PNG [ Show youtube player ] Last edited by AMIGASYSTEM; 13 September 2018 at 18:54. |
24 August 2018, 10:57 | #9 |
Registered User
Join Date: Feb 2008
Location: RNO
Posts: 1,007
|
|
24 August 2018, 11:00 | #10 |
Registered User
Join Date: Oct 2012
Location: Italy
Age: 49
Posts: 2,942
|
Yes, it's probably the PC drive the problem
I will experiment a little Thanks again |
24 August 2018, 11:34 | #11 |
Registered User
Join Date: Aug 2014
Location: Brindisi (Italy)
Age: 70
Posts: 8,252
|
It works well to me from Shell Last edited by AMIGASYSTEM; 13 September 2018 at 18:54. |
24 August 2018, 11:36 | #12 |
Registered User
Join Date: Oct 2012
Location: Italy
Age: 49
Posts: 2,942
|
It's the command with the "#?" special character that doesn't work
Works fine if i list each files instead |
24 August 2018, 11:41 | #13 |
Registered User
Join Date: Aug 2014
Location: Brindisi (Italy)
Age: 70
Posts: 8,252
|
Equal does not change anything works well with #?
What mistake do you get? Last edited by AMIGASYSTEM; 13 January 2019 at 19:11. |
24 August 2018, 11:44 | #14 |
Registered User
Join Date: Oct 2012
Location: Italy
Age: 49
Posts: 2,942
|
I get the error "can't open #?" AMIGASYSTEM
No idea what can be |
24 August 2018, 11:54 | #15 |
Registered User
Join Date: Aug 2014
Location: Brindisi (Italy)
Age: 70
Posts: 8,252
|
If you are not in the path, in front of the files you need to merge you must add the path, same thing for the destination, the wildcard must be after the path and no spaces, see screenshot
---- Italiano ---- Se non sei nel percorso, davanti ai file che devi unire devi aggiungere il percorso, stessa cosa per la destinazione, il carattere jolly deve trovarsi dopo il percoso e niente spazi, vedi screenshot |
24 August 2018, 12:03 | #16 |
Registered User
Join Date: Oct 2012
Location: Italy
Age: 49
Posts: 2,942
|
I'm in the path
What i write is "join #? as megafile" As simple as that But please note that i'm not in the HD but in external PC folder (DH1:-) ITALIANO Sono nel percorso Ciò che scrivo è "join #? as megafile" Semplicemente quello Ma per favore nota che non sono nell'HD ma in un'esterna cartella del PC (DH1:-) |
24 August 2018, 12:18 | #17 |
Registered User
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,370
|
Join probably doesn't support #?, but type does. Don't write the output file into the same directory if you want to use #? for all files, or you may get a recursive loop.
Delete >NIL: somewhere/outputfile Type inputfiles#? >>somewhere/outputfile Join inputfiles#? as somewhere/outputfile ... works too, as already suggested here. Last edited by PeterK; 24 August 2018 at 12:37. |
24 August 2018, 12:18 | #18 |
son of 68k
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,323
|
Exact command you should type is "join #? as ram:megafile".
|
24 August 2018, 12:51 | #19 | |
Registered User
Join Date: Aug 2014
Location: Brindisi (Italy)
Age: 70
Posts: 8,252
|
Quote:
It does not change anything, if you look at the screenshot you will notice that I also used a Windows folder as a volume (Test). As I showed you in the screenshot and confirmed later you have to give a desination path that in the case of the wildcard not in the same path of the files to be joined. ---- Italiano ---- Non cambia nulla, se guardi lo screenshot noterai che anche io ho usato una cartella di Windows come volume (Test). Come ti ho mostrato nelo screenshot e confermato dopo devi dare un percorso di desinazione che nel caso del carattere jolly no nello stesso percorso dei file da unire. |
|
24 August 2018, 14:03 | #20 |
Registered User
Join Date: Oct 2012
Location: Italy
Age: 49
Posts: 2,942
|
I written "join dh1:#? as megafile" in a subfolder of DH1: ..... it works !
Thanks AMIGASYSTEM |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ADF files to executable files | toples50 | support.Other | 5 | 29 July 2018 19:23 |
merge adf's | CritAnime | New to Emulation or Amiga scene | 0 | 25 October 2016 14:00 |
Alien Breed merge with Alien Breed intro | haynor666 | project.WHDLoad | 0 | 04 June 2016 22:35 |
Listing files, loading files and allocating all available chip ram. | h0ffman | Coders. System | 16 | 04 April 2013 21:24 |
UAE files! Where is the database providing these WinUAE setup files? | taichi_tarot | Retrogaming General Discussion | 3 | 02 June 2006 00:36 |
|
|