Author Topic: ManageDsk heeelp  (Read 1935 times)

0 Members and 1 Guest are viewing this topic.

Offline Optimus

  • 464 Plus
  • *****
  • Posts: 348
  • Country: gr
  • Liked: 161
  • Likes Given: 140
ManageDsk heeelp
« on: 13:42, 16 February 11 »
I am using ManageDsk to add a binary file to a dsk and now I have to do this frequently with the command line, because I compile with SDCC to bin and I want to not have to manually run managedsk and do it with the gui each time I compile.


So, I tried ManageDsk -C -Amain.bin -Stest.dsk as noted in the french readme file.
main.bin is my file, managedsk.exe is in the same folder, everything is there


The result? A DSK with nothing in it! Arghh!!!
If I try to do this with the GUI it works, I have a DSK with the binary file inside.


I have tried managedsk -C A*.bin -Stest.dsk, I have tried also *.BIN if it was case sensitive, I have tried to figure out why it doesn't work.


Then I also tried ManageDsk -Ltest.dsk -A*.bin -Snew.dsk
which is the other style, to add all binary files to the already created test.dsk
Result? New.dsk is also empty and identical to test.dsk


What am I doing wrong? This works from the GUI but not with command line and I need this to speed up the process of compiling and testing.


I open the dsk in Winape32 and I use Windows. Maybe the commandline style works only for the linux version of managedsk?


p.s. I am attaching the whole folder so that you can test it yourself and possibly find something that works, with the binary file, managedsk, and batch files doing each of the two types (I care about mdisk.bat, but ndisk.bat doesn't work either after mdisk.bat as it should).

Offline demoniak

  • CPC664
  • ***
  • Posts: 81
  • Country: fr
  • Liked: 65
  • Likes Given: 42
Re: ManageDsk heeelp
« Reply #1 on: 15:45, 16 February 11 »
This is a bug in the old version of ManageDsk.

I've try with the lastest version of ManageDsk (v0.19, attached to this post) and its works

By the way, you should use the -Ifilename instead of -Afilename if you want to add an amsdos header to your file in the dsk.

The -I parameter must be provided with
-PC file, with complete path if not in the same directory of ManageDsk,
-Cpc filename,
-File type,
-File start,
-File length,
and in option, file execution
separated by a / character

eg:

-IMyFile.BIN/CPCFILE.BIN/BIN/16384/3020

or

-IMyFile.BIN/CPCFILE.BIN/BIN/16384/3020/16384


For a basic file:

-IMyFileBasicFromPC/PROG.BAS/BAS/368/1024
« Last Edit: 16:01, 16 February 11 by demoniak »

Offline Bryce

  • The Hardware Guy.
  • Supporter
  • 6128 Plus
  • *
  • Posts: 11.237
  • Country: wf
  • It's not broken, it just hasn't been fixed yet.
    • index.php?action=treasury
  • Liked: 3937
  • Likes Given: 415
Re: ManageDsk heeelp
« Reply #2 on: 15:55, 16 February 11 »
Even if you still use the old 0.16 version (as I do), you can get around the bug by putting in the full path of the BIN file ie:

ManageDsk -C -AC:\Folder_of_binfile\*.BIN -Stoto.dsk

Bryce.

Offline Optimus

  • 464 Plus
  • *****
  • Posts: 348
  • Country: gr
  • Liked: 161
  • Likes Given: 140
Re: ManageDsk heeelp
« Reply #3 on: 16:17, 16 February 11 »
Oh,. I was looking for this -I switch.
  Now that -A worked, I needed the -I to load from basic.
 
 
  Now, -A works diferently than -I, very strange.
 
  For example ManageDsk -C -Imain.bin/BIN/16384/16384 -Stest.dsk produces a file called "BIN."
 
  What?
 
 
  I managed to get it working with this:
 
  ManageDsk -C -Imain.bin/main.bin/BIN/16384/16384 -Stest.dsk
 
  What?
 
 
  Anyway, it's like selecting main.bin once and then telling it once again   to save it as main.bin in the disk too, but this second definition was   missing from some of the -I examples.
 
  Anyway, thanks. I think I can manage it this way but if there is another problem I will ask again here.
 

Offline demoniak

  • CPC664
  • ***
  • Posts: 81
  • Country: fr
  • Liked: 65
  • Likes Given: 42
Re: ManageDsk heeelp
« Reply #4 on: 17:13, 16 February 11 »
Mmm... Yes the documentation is a bit messy...


You should provide two filename because, the first is the "real" filename from the pc, and the second is used to fill in the amsdos structure.

norecess

  • Guest
Re: ManageDsk heeelp
« Reply #5 on: 19:04, 16 February 11 »

Quote
You should provide two filename because, the first is the "real" filename from the pc, and the second is used to fill in the amsdos structure.
Yeah, this is the good thing to do.  :-\

Offline MacDeath

  • Chaotic post writer and mock-up specialist
  • Supporter
  • 6128 Plus
  • *
  • Posts: 4.056
  • Country: fr
  • Liked: 1146
  • Likes Given: 641
Re: ManageDsk heeelp
« Reply #6 on: 21:21, 19 May 11 »
Manage DSK : just let NewYork justice do their job... ;D