Author Topic: Get files in/out of image file  (Read 692 times)

0 Members and 1 Guest are viewing this topic.

Offline GeoffB17

  • 6128 Plus
  • ******
  • Posts: 848
  • Country: gb
  • PCW since '85, more CP/M than Loco
    • Awards
Get files in/out of image file
« on: 01:18, 08 December 21 »
What's the most convenient way to add, or extract, files from an image.

I can do this no problem, using Joyce with 'folder' drives active so I can use an image within Joyce and copy files in/out to the folder drive (i.e. C:) which are then accessible via DOS/WinDoze when I exit Joyce.

Or, within Joyce, there are the IMPORT/EXPORT utilites.

Maybe a little bit more long winded, using the real PCW, I could copy files to a real floppy and then create an image it it, or the other direction, take an existing image and write it to a real disk, then extract files to another disk I can read directly on a PC.

BUT - is there any software (not a full emulator) that you can run on a PC that can access an image (.DSK) and access indiv files and add files, or copy off indiv ones.   Again, no problem to 'inspect' the image, I can just use a hex editor on the image file and see what files are there, and even get an idea of the size of them from the alloc info.

Geoff
like
0
No reactions

Offline jevicac

  • CPC6128
  • ****
  • Posts: 169
  • Country: es
    • Awards
Re: Get files in/out of image file
« Reply #1 on: 01:55, 08 December 21 »
Hi Geoff, I use to open images and add files. I hope it helps you
like
2
Members reacted like:
ComSoft6128,rambler,

Offline GeoffB17

  • 6128 Plus
  • ******
  • Posts: 848
  • Country: gb
  • PCW since '85, more CP/M than Loco
    • Awards
Re: Get files in/out of image file
« Reply #2 on: 02:33, 08 December 21 »
Thanks very much.

Just had a little play, and this may well do the job.   There are a couple of 'oddities' that are not too friendly, , but I'll have to work around them.

I assume the reference to 'Headers' is a CPC thing.   If I'm dealing with PCW/CP/M files then I disregard that.

Not sure about the Binary/ASCII thing, I'd need to always leave the file unaltered.   Is that what the 'User Choice' refers to, i.e. leave along.

Geoff
like
0
No reactions

Offline jevicac

  • CPC6128
  • ****
  • Posts: 169
  • Country: es
    • Awards
Re: Get files in/out of image file
« Reply #3 on: 11:15, 08 December 21 »
Hello again, I do not understand it either, I send you the latest version that I have with instructions. I hope it is useful to you
like
1
Members reacted like:
rambler,

Offline JohnElliott

  • CPC664
  • ***
  • Posts: 136
  • Country: gb
    • Awards
Re: Get files in/out of image file
« Reply #4 on: 19:42, 08 December 21 »
If not working in JOYCE, I use command-line programs -- usually cpmtools under Linux, though my own mkp3fs is another way of constructing a disk image from one or more files.
like
0
No reactions

Offline robcfg

  • Supporter
  • 6128 Plus
  • *
  • Posts: 2.441
  • Country: se
  • 8-Bit Technomancer
    • index.php?action=treasury
    • Awards
Re: Get files in/out of image file
« Reply #5 on: 23:13, 08 December 21 »

You can also use Habi's excellent CP/M Box emulator which allows you to just copy the files from the disk straight to a folder on your PC.
like
0
No reactions

Offline GeoffB17

  • 6128 Plus
  • ******
  • Posts: 848
  • Country: gb
  • PCW since '85, more CP/M than Loco
    • Awards
Re: Get files in/out of image file
« Reply #6 on: 00:10, 09 December 21 »
Oh?

I've got the PCW prog, and I've used the prog for a few things, but I've not seen any links in the prog to PC drives.  Only the references to A: and B:.   But then, I'm not really a WinDoze person.   Was there something involving the dreaded 'drag-and-drop' which I still struggle with!

Geoff
like
0
No reactions

Offline robcfg

  • Supporter
  • 6128 Plus
  • *
  • Posts: 2.441
  • Country: se
  • 8-Bit Technomancer
    • index.php?action=treasury
    • Awards
Re: Get files in/out of image file
« Reply #7 on: 00:27, 09 December 21 »
It's quite easy to set up.


Go to the options->emulation menu, and then to the "Mapping" tab.


Click the "Enable" check box and select the folder that will be mapped as M: drive in the PCW emulation.


Copying files from a disk image to the M: drive, will make these files appear in the folder you selected on your PC.


The same way, if you want to insert something into a disk image, copy it to that folder on your PC and inside the emulator copy it from the M: drive to the disk image in A: or B:


Hope this helps!



like
0
No reactions

Offline GeoffB17

  • 6128 Plus
  • ******
  • Posts: 848
  • Country: gb
  • PCW since '85, more CP/M than Loco
    • Awards
Re: Get files in/out of image file
« Reply #8 on: 18:57, 09 December 21 »
Thanks.

Yes, I've now got an M: drive active, and yes, as a directory it's accessible to normal operations on the PC, which is a big help.

The Joyce system is more fiddly to set up, but the benefit is that the folder drives can be MUCH bigger, and can handle User areas.

I just thought - is that so?

So I went back and tested it.

In M:, I copied a file to m1: and it appeared to work.  I went into M1 and the file showed.  I came out, and checked the dir, and no sign of the file supposed to be in M1:.  I went back into PCW and the file was NOT there any more, so the copy working was temporary ONLY, or an illusion?  Is that notes in the 'Help' notes?

Another edit.  As far as I can see, the Help Notes do not say anything about this.  Joyce uses a faked filename to record the User number, there is no way a PC filename can reliably record a User Number. The oddity is that the prog gives the impression that it IS doing it, when it is not.   This is NOT a complaint.   A real PCW loses EVERYTHING on M: when it's turned off, this prog at least keeps anything in User 0!!

Geoff
« Last Edit: 19:33, 09 December 21 by GeoffB17 »
like
0
No reactions