News:

Printed Amstrad Addict magazine announced, check it out here!

Main Menu
avatar_Targhan

Cross-platform DSK manager?

Started by Targhan, 23:18, 06 November 19

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Targhan

Is there a command-line cross-platform (Windows, Linux, Mac) software to create DSKs, add binary files and so on? Ramlaid's tools only work on Windows. Thanks!
Targhan/Arkos

Arkos Tracker 2.0.1 now released! - Follow the news on Twitter!
Disark - A cross-platform Z80 disassembler/source converter
FDC Tool 1.1 - Read Amsdos files without the system

Imperial Mahjong
Orion Prime

mv

If you like Perl, you can use dskcpy.pl. I have attached the latest version dskcpy0032.zip.There is an older version on http://benchmarko.de/download/index_e.html.

> ./dskcpy.pl -h
dskcpy.pl v0.032 -- Copy files from/into DSK images
Usage: dskcpy.pl [-f|-g|-i|-l|-p|-r] image.dsk [-F type] [-H] file(s)
-f d.dsk         : Format an image. Use with -F <format>
-g d.dsk <files> : Get files from disk image
-i d.dsk         : Print image info
-l d.dsk <files> : List files in disk image (-l is optional)
-p d.dsk <files> : Put files into disk image
-r d.dsk <files> : Remove files from disk image
-F <format>,[p=v]: Set or overwrite detected format, use with caution!
-H       : hex dump output for debugging
-h       : help
-d level : set debug level
-D       : dup STDOUT to STDERR

Examples:
- Get files from disk image:
dskcpy.pl -g foo.dsk file1.bas file2.txt
- Put files into disk image:
dskcpy.pl -p foo.dsk file1.bas "files*.txt"
- Remove files from disk image:
dskrm.pl/dskcopy.pl -r foo.dsk '*.bas'
- Show directory of disk image:
dskdir.pl/dskcpy.pl [-l] foo.dsk '*.bas'
- Create/format a new disk image:
dskformat.pl/dskcpy.pl -f foo.dsk -F data
- Print disk image info
dskcpy.pl -i foo.dsk
- Get all deleted files from disk image starting with 'A':
dskcpy.pl -g foo.dsk '229:A*'


mr_lou

I always use ManageDsk, which is a Windows application yes, but works fine with Wine on Linux. (Isn't Wine also available on Mac?)

Not a command-line tool of course though.

I can see in my old scripts that I also used to use command-line cpcxfs with Wine once.

Targhan

@mv Thanks, it looks perfect! I'll give it a try.

@mr_lou Thanks but I need command line, it is for automatizing DSK generation. But you're right, with Wine, cpcxfs should work.
Targhan/Arkos

Arkos Tracker 2.0.1 now released! - Follow the news on Twitter!
Disark - A cross-platform Z80 disassembler/source converter
FDC Tool 1.1 - Read Amsdos files without the system

Imperial Mahjong
Orion Prime

scruss

I like iDSK. Its command line syntax is a little confusing, but once you get used to it it does everything I need.

Targhan

@scruss Hey thanks, it seems very fine! I managed to compile on with Windows, so it should be even simpler on Macos and Linux.
Targhan/Arkos

Arkos Tracker 2.0.1 now released! - Follow the news on Twitter!
Disark - A cross-platform Z80 disassembler/source converter
FDC Tool 1.1 - Read Amsdos files without the system

Imperial Mahjong
Orion Prime

krusty_benediction

Quote from: Targhan on 23:18, 06 November 19
Is there a command-line cross-platform (Windows, Linux, Mac) software to create DSKs, add binary files and so on? Ramlaid's tools only work on Windows. Thanks!
I'm also reinventing the wheel, but I have no idea of the current state of my disc manager (not worked on/used it since a lot of time) with the rust language. I guess it is able to manipulate Amsdos discs. It must be compilable on Windows/MacOsx/Linux. I have no MacOsX/Windows to test. https://github.com/cpcsdk/rust.cpclib

krusty_benediction

Quote from: krusty_benediction on 20:45, 08 November 19
I'm also reinventing the wheel, but I have no idea of the current state of my disc manager (not worked on/used it since a lot of time) with the rust language. I guess it is able to manipulate Amsdos discs. It must be compilable on Windows/MacOsx/Linux. I have no MacOsX/Windows to test. https://github.com/cpcsdk/rust.cpclib
(so if someone could try to compile/test on windows/macosx it would be nice. Command would be `cargo build --bin dskmanager --features=dskmanager`)

scruss

the only problem I've found with iDSK is that it omits spaces from detokenized BASIC files

Sid_

I wrote this https://github.com/jeromelesaux/dsk some times ago.
If you want binaries tell me, I can compile for windows, Linux, macOS and raspberry.


Sid_

I added binaries https://github.com/jeromelesaux/dsk/releases .
Tell me if you want additional documentation to use it.

Powered by SMFPacks Menu Editor Mod