Author Topic: Cross-platform DSK manager?  (Read 336 times)

0 Members and 1 Guest are viewing this topic.

Offline Targhan

  • Supporter
  • 6128 Plus
  • *
  • Posts: 959
  • Country: fr
  • Liked: 920
  • Likes Given: 141
Cross-platform DSK manager?
« 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!
Targhan/Arkos

Arkos Tracker 2 - alpha 7 now released! - Follow the news on Twitter!
Disark A cross-platform Z80 disassembler/source converter

Imperial Mahjong
Orion Prime

Offline mv

  • CPC464
  • **
  • Posts: 12
  • Country: de
  • CPC6128
  • Liked: 44
  • Likes Given: 25
Re: Cross-platform DSK manager?
« Reply #1 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*'


Offline mr_lou

  • 6128 Plus
  • ******
  • Posts: 2.921
  • Country: dk
    • index.php?action=treasury
    • 8-bit Memoirs - a Blu-ray diskmag-like eBook about the 8-bit era
  • Liked: 1091
  • Likes Given: 2304
Re: Cross-platform DSK manager?
« Reply #2 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.

Offline Targhan

  • Supporter
  • 6128 Plus
  • *
  • Posts: 959
  • Country: fr
  • Liked: 920
  • Likes Given: 141
Re: Cross-platform DSK manager?
« Reply #3 on: 14:25, 07 November 19 »
@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 - alpha 7 now released! - Follow the news on Twitter!
Disark A cross-platform Z80 disassembler/source converter

Imperial Mahjong
Orion Prime

Offline scruss

  • CPC664
  • ***
  • Posts: 66
  • Country: ca
    • index.php?action=treasury
    • We Saw a Chicken ...
  • Liked: 45
  • Likes Given: 9
Re: Cross-platform DSK manager?
« Reply #4 on: 17:36, 08 November 19 »
I like iDSK. Its command line syntax is a little confusing, but once you get used to it it does everything I need.

Offline Targhan

  • Supporter
  • 6128 Plus
  • *
  • Posts: 959
  • Country: fr
  • Liked: 920
  • Likes Given: 141
Re: Cross-platform DSK manager?
« Reply #5 on: 18:24, 08 November 19 »
@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 - alpha 7 now released! - Follow the news on Twitter!
Disark A cross-platform Z80 disassembler/source converter

Imperial Mahjong
Orion Prime

Offline krusty_benediction

  • CPC664
  • ***
  • Posts: 140
  • Country: fr
  • Liked: 102
  • Likes Given: 36
Re: Cross-platform DSK manager?
« Reply #6 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

Offline krusty_benediction

  • CPC664
  • ***
  • Posts: 140
  • Country: fr
  • Liked: 102
  • Likes Given: 36
Re: Cross-platform DSK manager?
« Reply #7 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
(so if someone could try to compile/test on windows/macosx it would be nice. Command would be `cargo build --bin dskmanager --features=dskmanager`)

Offline scruss

  • CPC664
  • ***
  • Posts: 66
  • Country: ca
    • index.php?action=treasury
    • We Saw a Chicken ...
  • Liked: 45
  • Likes Given: 9
Re: Cross-platform DSK manager?
« Reply #8 on: Yesterday at 18:44 »
the only problem I've found with iDSK is that it omits spaces from detokenized BASIC files