Page 1 of 1

DOS copy command

Posted: Tue Nov 07, 2023 7:56 pm
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?

Re: DOS copy command

Posted: Tue Nov 07, 2023 8:43 pm
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.