CPCWiki forum

General Category => Programming => Topic started by: Targhan on 00:18, 07 November 19

Title: Cross-platform DSK manager?
Post by: Targhan on 00:18, 07 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!
Title: Re: Cross-platform DSK manager?
Post by: mv on 01:31, 07 November 19
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*'

Title: Re: Cross-platform DSK manager?
Post by: mr_lou on 07:05, 07 November 19
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.
Title: Re: Cross-platform DSK manager?
Post by: Targhan on 14:25, 07 November 19
@mv (http://www.cpcwiki.eu/forum/index.php?action=profile;u=3387) Thanks, it looks perfect! I'll give it a try.

@mr_lou (http://www.cpcwiki.eu/forum/index.php?action=profile;u=96) Thanks but I need command line, it is for automatizing DSK generation. But you're right, with Wine, cpcxfs should work.
Title: Re: Cross-platform DSK manager?
Post by: scruss on 17:36, 08 November 19
I like iDSK (https://github.com/jeromelesaux/idsk). Its command line syntax is a little confusing, but once you get used to it it does everything I need.
Title: Re: Cross-platform DSK manager?
Post by: Targhan on 18:24, 08 November 19
@scruss (http://www.cpcwiki.eu/forum/index.php?action=profile;u=691) Hey thanks, it seems very fine! I managed to compile on with Windows, so it should be even simpler on Macos and Linux.
Title: Re: Cross-platform DSK manager?
Post by: krusty_benediction on 21:45, 08 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 (https://github.com/cpcsdk/rust.cpclib)
Title: Re: Cross-platform DSK manager?
Post by: krusty_benediction on 21:54, 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 (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`)
Title: Re: Cross-platform DSK manager?
Post by: scruss on 18:44, 08 December 19
the only problem I've found with iDSK is that it omits spaces from detokenized BASIC files
Title: Re: Cross-platform DSK manager?
Post by: Sid_ on 18:07, 09 December 19
I wrote this https://github.com/jeromelesaux/dsk (https://github.com/jeromelesaux/dsk) some times ago.
If you want binaries tell me, I can compile for windows, Linux, macOS and raspberry.

Title: Re: Cross-platform DSK manager?
Post by: Sid_ on 18:14, 11 December 19
I added binaries https://github.com/jeromelesaux/dsk/releases .
Tell me if you want additional documentation to use it.