1

Topic: .cp file to hd1 - search the correct command

Hello,

Excuse the question, but I come to no solution.
Maybe someone can help me with the correct command.

I would like to be an example,
Copy the file SETO-ES.TAP from the directory games from hd0 into the root of hd1

Bye for now,
Günter

2 (edited by Luzie 2017-06-16 22:28:06)

Re: .cp file to hd1 - search the correct command

Dear Günter,

on latest "esxDOS One heet Manual v0.2" from author " Jez Harrison "
(found on: http://zxdisorder.blogspot.de/2012/07/e … l-v02.html
Download-Link: http://dl.dropbox.com/u/50121782/ESXDOS … 20v0_2.pdf )

it is written for the .DOT-"System Commands":
"All commands support a <drive> parameter, which can be "*" for current drive or you can specify another one (ie hd1),
drives are named according to their type and partition number,
you can see a list of drive names when ESXDOS runs it's initial BIOS drive detection.".

I think this is wrong. All syntax-combinations I´ve tried with .-Commands don´t seem to support drive-names.
Only BASIC commands like CAT seem to support drive-names like CAT hd1

I tried to contact author Jez Harrison yesterday via GOOGLE+ but has no answer yet, and it seems author has updates his webseite last time in December 2012.

Maybe someone could disassemble the .cp command to find out if it should support driveletters, but disassembly is always time-consuming job even for someone who knows about mcode.

Update:
This info ist from Readme of esxDOS 0.80:
7. BASIC commands
=================
ESXDOS extends some BASIC commands functionality. Please note the following:
- All commands support a <drive> parameter, which can be "*" for current drive or you can specify another one (ie hd1).

-> Seems only to be true for BASIC-Commands and NOT for .DOT-commands!

3 (edited by Spezzi63 2017-09-29 17:41:20)

Re: .cp file to hd1 - search the correct command

Luzie wrote:

Update:
This info ist from Readme of esxDOS 0.80:
7. BASIC commands
=================
ESXDOS extends some BASIC commands functionality. Please note the following:
- All commands support a <drive> parameter, which can be "*" for current drive or you can specify another one (ie hd1).

-> Seems only to be true for BASIC-Commands and NOT for .DOT-commands!

Unfortunately, I helps very little sad
but nevertheless, many thanks for the effort.
Bye for now,
Günter

4 (edited by Luzie 2017-09-29 19:33:06)

Re: .cp file to hd1 - search the correct command

Hi Günter,

did you try to use BASIC COPY command instead of .CP DOT-Command?

Please see COPY description on: +3 Manual at: http://www.worldofspectrum.org/ZXSpectr … 8pt20.html

But I don´t know, if this helps? ...

Update: No sorry, this seems not to help. Only BASIC command CAT and ERASE seems to support hd0"filename" ...

5 (edited by Luzie 2026-04-01 20:16:56)

Re: .cp file to hd1 - search the correct command

I don´t know if this helps, but there are updates DOT-Commands for esxDOS 0.8.9: https://spectrumcomputing.co.uk/forums/ … hp?t=15101

"esxDOS 0.8.9 dot-commands upgrade vol.1":

Unread post by SamC » Wed Apr 01, 2026 8:36 pm

https://zxfiles.net/esxdos/ESXDOT2.TAR

incl. CRC32 and TAR

This package contains updated versions of the basic esxDOS
dot commands for file operations on multiple drives.
Support for the drives hd1, hd2, and hd3 has been added
to these commands.

Developed in 2025&26 by ub880d.

The change applies to the following commands, located in
the root BIN directory:

  CD, CP, DFWLOAD, FILE, HEXDUMP, CHMOD, LS, LSTAP
  MKDIR, MORE, STRINGS, TAPEIN, TAPEOUT, TAR

If your BIN directory contains only the original esxDOS
commands, the CRC32 and STAT commands will be added by
this update.


INSTALLATION:

Unpack the archive onto an esxDOS disk using the commands:

    .cd /
    .tar xv <folder>/ESXDOT2.TAR

Immediately after unpacking, the updated commands will be
available for use, because the unpack operation overwrites
files in the BIN directory.


USAGE:

When working with files, any of the four drives hd0, hd1,
hd2 and hd3 can be used.

Warning:
Do not confuse logical disks (partitions) with storage
media (SD/MMC/IDE/CF) slots of your device. If a single
storage medium (HDD, SD or CF card) contains multiple FAT
file-system partitions, esxDOS identifies these partitions
and presents them as separate drives.

When a single storage device has four FAT partitions,
esxDOS will show the corresponding drives as hd0, hd1,
hd2 and hd3. In such a configuration the system will
ignore the second storage slot.


EXAMPLES:

All commands are entered with a leading dot (commonly
known as "dot commands").

The command syntax is extended  with a disk name
parameter, which is placed before the file name and its
path. The disk name must be enclosed in quotation marks.

    .cp "hd0"/SYS/CONFIG/SERCP.CFG "hd1"SERCP.BKP

Distinguish between:

    .ls "hd1"/TEST.TXT
    .ls "hd1"TEST.TXT

In the first example the file is located in the root
directory (the "full path" is given), in the second case
the file is located relative to the current directory
of disk hd1.