command line tool hxcfe - getfile/putfile

General discussion forum - for all that doesn't fit in any other category.
Post Reply
krupkaj
Posts: 9
Joined: Sun Nov 11, 2012 11:08 pm
Location: Olomouc / Czech
Contact:

command line tool hxcfe - getfile/putfile

Post by krupkaj »

hi,
please could you explain me how to put/get files to/from image by command line tool hxcfe?
I found out how to convert files from msa image to hfe and how to create empty hfe file. But I do not understand how options -getfile and -putfile work.
thanks.

krupkaj
Posts: 9
Joined: Sun Nov 11, 2012 11:08 pm
Location: Olomouc / Czech
Contact:

Re: command line tool hxcfe - getfile/putfile

Post by krupkaj »

nobody knows? :(

Jeff
Site Admin
Posts: 8092
Joined: Fri Oct 20, 2006 12:12 am
Location: Paris
Contact:

Re: command line tool hxcfe - getfile/putfile

Post by Jeff »

krupkaj wrote:nobody knows? :(
hxcfe -finput:Disk_Image.hfe -putfile:thefile.txt
hxcfe -finput:Disk_Image.hfe -list
hxcfe -finput:Disk_Image.hfe -getfile:/thefile.txt

krupkaj
Posts: 9
Joined: Sun Nov 11, 2012 11:08 pm
Location: Olomouc / Czech
Contact:

Re: command line tool hxcfe - getfile/putfile

Post by krupkaj »

Thanks! I use -foutput when tried to write a file and did not use the / when getting the file from image.

Is it possible to create image file with FAT12 filesystem? I tried
hxcfe -foutput:test.hfe -uselayout:DOS_DD_720KB -ifmode:ATARIST_DD_FLOPPYMODE -conv:HXC_HFE

it creates the image but it is not possible to write a file into it.

krupkaj@mini:~/HxC/export$ hxcfe -finput:test.hfe -putfile:test.txt
HxC Floppy Emulator : Floppy image file converter
Copyright (C) 2006-2012 Jean-Francois DEL NERO
This program comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions;

libhxcfe version : 2.3.4.2

Input file : test.hfe
File Image: test.hfe
Checking test.hfe
File loader found : HXC_HFE (SD Card HxCFE HFE file Loader)
Loading test.hfe
file loader found!

File type : HXC_HFE - SD Card HxCFE HFE file Loader
Floppy interface mode : ATARIST_DD_FLOPPYMODE
Number of Track : 80
Number of Side : 2

--------------------------

Put test.txt
Files size : 21 Bytes
Write HFE file test.hfe for the standalone emulator.
Floppy interface mode ATARIST_DD_FLOPPYMODE (Atari Interface (720KB/DD Disk))
80 tracks written to the file

--------------------------
Stopping HxCFloppyEmulator...



krupkaj@mini:~/HxC/export$ hxcfe -finput:test.hfe -list
HxC Floppy Emulator : Floppy image file converter
Copyright (C) 2006-2012 Jean-Francois DEL NERO
This program comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions;

libhxcfe version : 2.3.4.2

Input file : test.hfe
---------------------------------------------------------------------------
- File image browser -
---------------------------------------------------------------------------
File: test.hfe
Checking test.hfe
File loader found : HXC_HFE (SD Card HxCFE HFE file Loader)
Loading test.hfe
file loader found!

File type : HXC_HFE - SD Card HxCFE HFE file Loader
Floppy interface mode : ATARIST_DD_FLOPPYMODE
Number of Track : 80
Number of Side : 2
Total Size : 737280 Bytes, Number of sectors : 1440

------- Disk Tree --------

--------------------------
Stopping HxCFloppyEmulator...

Jeff
Site Admin
Posts: 8092
Joined: Fri Oct 20, 2006 12:12 am
Location: Paris
Contact:

Re: command line tool hxcfe - getfile/putfile

Post by Jeff »

Use the GUI to create the dos image.

Why do you want to use the command line tool?

krupkaj
Posts: 9
Joined: Sun Nov 11, 2012 11:08 pm
Location: Olomouc / Czech
Contact:

Re: command line tool hxcfe - getfile/putfile

Post by krupkaj »

Because I have not Windows machine. I tried the Linux GUI version but as I wrote in Raspberry Pi thread the drag & drop does not work properly. I have no problem with using command line tools. It would be even better if it runs on Atari under MiNT. But I did not try to compile it yet.

edit: I have just read the other thread and I am downloading the source tree :-)

Jeff
Site Admin
Posts: 8092
Joined: Fri Oct 20, 2006 12:12 am
Location: Paris
Contact:

Re: command line tool hxcfe - getfile/putfile

Post by Jeff »

krupkaj wrote: edit: I have just read the other thread and I am downloading the source tree :-)
Good idea ;)

Cyprian
Posts: 8
Joined: Tue Oct 24, 2006 12:58 pm

Re: command line tool hxcfe - getfile/putfile

Post by Cyprian »

Hi Jan,

what about Thomas's converter? It converts PRG files into ST disk.
http://manpages.ubuntu.com/manpages/pre ... 2st.1.html
http://hg.tuxfamily.org/mercurialroot/h ... /zip2st.sh

Is it ok for you?

[EDIT]

there is also Leonard's dir2msa:
http://dhs.nu/bbs-scene/index.php?request=16129
Mega ST 1 / 7800 / Portfolio / Lynx II / Jaguar / TT030 / Mega STe / 800 XL / 1040 STe / Falcon030 / 65 XE / 520 STm
http://260ste.atari.org

audric
Posts: 2
Joined: Fri Apr 28, 2023 1:32 pm

Re: command line tool hxcfe - getfile/putfile

Post by audric »

Jeff wrote:
Wed Apr 03, 2013 10:24 pm
krupkaj wrote:nobody knows? :(
hxcfe -finput:Disk_Image.hfe -putfile:thefile.txt
hxcfe -finput:Disk_Image.hfe -list
hxcfe -finput:Disk_Image.hfe -getfile:/thefile.txt
in my case the file to be put in the images has to be inside a directory.
ie:
\MYDIR\myfile.txt

I need to inject the file in the image via commandline.

Is this possible?

Post Reply