How to use CMDR-DOS [reference]

Tutorials and help articles.

(Posts require approval. See pinned post.)
Forum rules
Post guides, tutorials, and other instructional content here.

This topic area requires approval, so please be patient while we review content to make sure it fits the expectations for this topic area.

Tech support questions should be asked in Hardware or Software support.
Post Reply
rje
Posts: 1263
Joined: Mon Apr 27, 2020 10:00 pm
Location: Dallas Area

How to use CMDR-DOS [reference]

Post 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

 

 

Ender
Posts: 220
Joined: Sat May 09, 2020 9:32 pm

How to use CMDR-DOS [reference]

Post 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

rje
Posts: 1263
Joined: Mon Apr 27, 2020 10:00 pm
Location: Dallas Area

How to use CMDR-DOS [reference]

Post 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!

User avatar
svenvandevelde
Posts: 488
Joined: Wed Dec 23, 2020 6:30 am
Location: Belgium, Antwerpen

Re: How to use CMDR-DOS [reference]

Post by svenvandevelde »

Very helpful, thank you. This should be in the manual.
KICKC home page by Jesper Gravgaard.
My KICKC alpha with Commander X16 extensions.
kelli217
Posts: 541
Joined: Sun Jul 05, 2020 11:27 pm

Re: How to use CMDR-DOS [reference]

Post 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
Post Reply