Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 05:38 02 Aug 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : CMM2: file commands

Author Message
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4311
Posted: 03:38pm 10 Aug 2021
Copy link to clipboard 
Print this post

Hi folks,

Just want to make sure I'm not missing anything, am I correct that with raw MMBasic:

1. You cannot delete a directory that has contents
2. You cannot copy/delete/move multiple files with a single command
3. You cannot make a directory hierarchy with a single command

I am aware of Napoleon Commander, et al., I am asking about what is possible with the "raw MMBasic" commands. In addition I'm not asking for any additions to these raw commands just trying to understand what we have.

Best wishes,

Tom
MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 09:53pm 10 Aug 2021
Copy link to clipboard 
Print this post

Correct for all 3.

Edit:
I haven't tried all of the usual wildcard possibilities for the KILL command but the ones I have tried give an error.
You can test that sort of thing on your own files!

Jim
Edited 2021-08-11 08:14 by TassyJim
VK7JH
MMedit
 
jirsoft

Guru

Joined: 18/09/2020
Location: Czech Republic
Posts: 533
Posted: 09:44am 11 Aug 2021
Copy link to clipboard 
Print this post

Hi Tom,
from my tests it's exactly as you wrote...
Jiri
Napoleon Commander and SimplEd for CMM2 (GitHub),  CMM2.fun
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4311
Posted: 10:05am 11 Aug 2021
Copy link to clipboard 
Print this post

Thanks for the answers folks.

  TassyJim said  I haven't tried all of the usual wildcard possibilities for the KILL command but the ones I have tried give an error.
You can test that sort of thing on your own files!


Yep, I've (partially) written a shell providing 'rm', 'cp' and 'mv' commands (amongst other stuff) with support for multiple inputs and basic globbing, but I'm terrified of having a bug in the 'rm' implementation that will wreak havoc.

Best wishes,

Tom
Edited 2021-08-11 20:12 by thwill
MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4311
Posted: 10:06am 11 Aug 2021
Copy link to clipboard 
Print this post

Contents of double post deleted.
Edited 2021-08-11 20:08 by thwill
MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
elk1984

Senior Member

Joined: 11/07/2020
Location: United Kingdom
Posts: 228
Posted: 05:51pm 12 Aug 2021
Copy link to clipboard 
Print this post

  thwill said  Contents of double post deleted.

rm command working well there  
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025