Page 1 of 1

How to use CMDR-DOS [reference]

Posted: Wed Sep 02, 2020 7:07 pm
by rje

This page is kind-of a placeholder for my questions and discoveries as I learn CMDR-DOS.

Read the (current) Directory


  • DOS"$"


Make and Remove a Subdirectory


  • DOS"MD:dirname"


  • DOS"RD:dirname"


Change Directory


  • DOS"CD:dirname"


  • DOS"CD:.." (to go up one level)


Scratch (delete) Files


  • DOS"S:filename"


  • DOS"S:file1,file2,file3,..."


  • DOS"S//dirname/:filename"


Copy and Concatenate Files


  • DOS"C:newfile=oldfile"


  • DOS"C:newfile=oldfile1,oldfile2,oldfile3,..."


Rename a File


  • DOS"R:newname=oldname"


Lock Files


  • DOS"L:file1,file2,file3..."


Creating a file in a subdirectory



















 

 

10 DOS"MD:MY-DIR-001"

20
 OPEN1,8,2,"//MY-DIR-001/:MY-FILE-1234,P,W"

 

30 PRINT#1,"HELLO, WORLD!"

40 CLOSE 1

50 OPEN 1,8,2,"//MY-DIR-001/:MY-FILE-1234"

60 INPUT#1,A$

70 CLOSE 1

 

 


How to use CMDR-DOS [reference]

Posted: Thu Sep 03, 2020 12:46 am
by Ender

A good place to start would be to take a look here: https://github.com/commanderx16/x16-rom/blob/master/dos/README.md

You could also take a look at this dos unit test here for some good examples: https://github.com/commanderx16/x16-rom/blob/master/test/dos.bas


How to use CMDR-DOS [reference]

Posted: Thu Sep 03, 2020 2:07 am
by rje


1 hour ago, Ender said:




You could also take a look at this dos unit test here for some good examples: https://github.com/commanderx16/x16-rom/blob/master/test/dos.bas



THAT is very helpful!  Thank you!


Re: How to use CMDR-DOS [reference]

Posted: Mon Mar 13, 2023 8:33 am
by svenvandevelde
Very helpful, thank you. This should be in the manual.

Re: How to use CMDR-DOS [reference]

Posted: Mon Mar 13, 2023 5:03 pm
by kelli217
https://github.com/X16Community/x16-doc ... MDR-DOS.md

It's in the community manuals, and while it isn't in the manuals distributed with the older versions of the emulator, there's a somewhat less detailed version in the original repo, too... https://github.com/commanderx16/x16-rom ... /README.md