Today finally I found some time to write an Amsdos Header utility for SymbOS SymShell.
[attachimg=2]
You can remove and add these special 128byte Amsdos headers from/to files or just receive information about existing headers.
Usage:
AHEAD %r FILEMASK.EXT
removes AmsDOS fileheaders from all files, if existing
AHEAD %a FILEMASK.EXT [%pBBBB[,LLLL[,XXXX[,TT]]]]
adds AmsDOS fileheaders to all files, if not existing;
the optional %p parameter specifies the begin BBBB,
optional length LLLL, optional execution address EEEE
and the optional file type TT (all HEX, 4 or 2 digits)
Type can be 00=Basic, 01=Binary, 02=Screen, 13=ASCII
AHEAD %i FILEMASK.EXT
displays AmsDOS fileheader information of all files
Example:
AHEAD %r *.PT3
Please note:
- AHEAD will only manipulate files, if there is an/no existing header
- you can use wildcards
- currently it has to be in the same directory like the files you want to edit
- when adding headers you can specify one or more details with the %P option
AHEAD is also part of the improvement of SymShell. The next version will provide the SymbOS path merging function for independant utilisation in external apps. This will also be used by the internal SymShell COPY command, which is currently not using the wildcard feature of SymbOS.
Thanks a lot to Craig and Kevin for your inspiration!!
I didn't test it yet on FAT device, as currently I don't have access to a real machine, and WinApe doesn't allow write access. If you find any issues, please write!
CU,
Prodatron
Quote from: Prodatron on 01:12, 11 February 15
Today finally I found some time to write an Amsdos Header utility for SymbOS SymShell.
[attachimg=2]
You can remove and add these special 128byte Amsdos headers from/to files or just receive information about existing headers.
Usage:
AHEAD %r FILEMASK.EXT
removes AmsDOS fileheaders from all files, if existing
AHEAD %a FILEMASK.EXT [%pBBBB[,LLLL[,XXXX[,TT]]]]
adds AmsDOS fileheaders to all files, if not existing;
the optional %p parameter specifies the begin BBBB,
optional length LLLL, optional execution address EEEE
and the optional file type TT (all HEX, 4 or 2 digits)
Type can be 00=Basic, 01=Binary, 02=Screen, 13=ASCII
AHEAD %i FILEMASK.EXT
displays AmsDOS fileheader information of all files
Example:
AHEAD %r *.PT3
Please note:
- AHEAD will only manipulate files, if there is an/no existing header
- you can use wildcards
- currently it has to be in the same directory like the files you want to edit
- when adding headers you can specify one or more details with the %P option
AHEAD is also part of the improvement of SymShell. The next version will provide the SymbOS path merging function for independant utilisation in external apps. This will also be used by the internal SymShell COPY command, which is currently not using the wildcard feature of SymbOS.
Thanks a lot to Craig and Kevin for your inspiration!!
I didn't test it yet on FAT device, as currently I don't have access to a real machine, and WinApe doesn't allow write access. If you find any issues, please write!
CU,
Prodatron
fantastic work prodatron, will test it tomorrow on some pt3 files with known headers.
Then I'll let you know.
Very nice!!!
Sorry for the delay, Life has got in the way.
However I now have some free time ot tet, and the ZIP seem corrupted, I am unable to extract the file :(
Edit: OK Not zipped, just renamed. Copied over to my X-Mass and working fine :)
Many thanks
Glad, that it's working! Sorry for the "ZIP", I just replaced it :)