DOS copy command

All aspects of programming on the Commander X16.
Post Reply
unartic
Posts: 145
Joined: Sat Oct 28, 2023 3:26 pm

DOS copy command

Post by unartic »

Hi!

I'm using channel 15 to send dos commands:

lda #2 ; Logical Number
ldx #8
ldy #15 ; 15=control channel
jsr SETLFS

Creating a directory, renaming a file etc works just fine. But I can't figure out how to copy a file.

Docummentation states this:

C[path_a]:target_name=[path_b]:source_name[,...]

An example I've found uses this:
C:TARGET=SOURCE

Whatever I try I always get a syntax error.

Does anyone know the correct syntax?
DragWx
Posts: 362
Joined: Tue Mar 07, 2023 9:07 pm

Re: DOS copy command

Post by DragWx »

Don't worry, it's not you. The "copy" command is not yet implemented in the emulator when using hostfs and will always give "syntax error" as the result.

It should work on real hardware though, and also if you used an SD card image with the emulator, just not hostfs.
Post Reply