English Amiga Board


Go Back   English Amiga Board > Support > support.Other

 
 
Thread Tools
Old 24 August 2018, 06:05   #1
chip
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 :-)
chip is offline  
Old 24 August 2018, 07:07   #2
jPV
Registered User
 
jPV's Avatar
 
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.
jPV is offline  
Old 24 August 2018, 08:03   #3
chip
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 ?
chip is offline  
Old 24 August 2018, 09:39   #4
jPV
Registered User
 
jPV's Avatar
 
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 #?.
jPV is offline  
Old 24 August 2018, 09:52   #5
chip
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
chip is offline  
Old 24 August 2018, 10:25   #6
jPV
Registered User
 
jPV's Avatar
 
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?
Attached Thumbnails
Click image for larger version

Name:	joining.png
Views:	219
Size:	5.0 KB
ID:	59483  
jPV is offline  
Old 24 August 2018, 10:31   #7
chip
Registered User
 
Join Date: Oct 2012
Location: Italy
Age: 49
Posts: 2,942
3.1 ROM

Kickstart version 40.68
Workbench version 40.42
chip is offline  
Old 24 August 2018, 10:39   #8
AMIGASYSTEM
Registered User
 
AMIGASYSTEM's Avatar
 
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.
AMIGASYSTEM is online now  
Old 24 August 2018, 10:57   #9
jPV
Registered User
 
jPV's Avatar
 
Join Date: Feb 2008
Location: RNO
Posts: 1,007
Quote:
Originally Posted by chip View Post
3.1 ROM

Kickstart version 40.68
Workbench version 40.42
Same as I have then. And my Join command is version 37.1 (10/01/91).

I guess you just have to experiment what's up with your system. Try simple example like I did without using the PC drive etc.
jPV is offline  
Old 24 August 2018, 11:00   #10
chip
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
chip is offline  
Old 24 August 2018, 11:34   #11
AMIGASYSTEM
Registered User
 
AMIGASYSTEM's Avatar
 
Join Date: Aug 2014
Location: Brindisi (Italy)
Age: 70
Posts: 8,252
Quote:
Originally Posted by chip View Post
3.1 ROM

Kickstart version 40.68
Workbench version 40.42

It works well to me from Shell

Last edited by AMIGASYSTEM; 13 September 2018 at 18:54.
AMIGASYSTEM is online now  
Old 24 August 2018, 11:36   #12
chip
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
chip is offline  
Old 24 August 2018, 11:41   #13
AMIGASYSTEM
Registered User
 
AMIGASYSTEM's Avatar
 
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.
AMIGASYSTEM is online now  
Old 24 August 2018, 11:44   #14
chip
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
chip is offline  
Old 24 August 2018, 11:54   #15
AMIGASYSTEM
Registered User
 
AMIGASYSTEM's Avatar
 
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
AMIGASYSTEM is online now  
Old 24 August 2018, 12:03   #16
chip
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:-)
chip is offline  
Old 24 August 2018, 12:18   #17
PeterK
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.
PeterK is online now  
Old 24 August 2018, 12:18   #18
meynaf
son of 68k
 
meynaf's Avatar
 
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,323
Exact command you should type is "join #? as ram:megafile".
meynaf is offline  
Old 24 August 2018, 12:51   #19
AMIGASYSTEM
Registered User
 
AMIGASYSTEM's Avatar
 
Join Date: Aug 2014
Location: Brindisi (Italy)
Age: 70
Posts: 8,252
Quote:
Originally Posted by chip View Post
Ma per favore nota che non sono nell'HD ma in un'esterna cartella del PC (DH1:-)

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.
AMIGASYSTEM is online now  
Old 24 August 2018, 14:03   #20
chip
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
chip 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
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

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

Top

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