Jump to content

How to use CMDR-DOS [reference]


rje
 Share

Recommended Posts

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
   
Edited by rje
  • Like 1
  • Thanks 2
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

Please review our Terms of Use