![]() |
Forum Index : Microcontroller and PC projects : CMM2: file commands
Author | Message | ||||
thwill![]() Guru ![]() Joined: 16/09/2019 Location: United KingdomPosts: 4311 |
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: AustraliaPosts: 6283 |
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 RepublicPosts: 533 |
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 KingdomPosts: 4311 |
Thanks for the answers folks. 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 KingdomPosts: 4311 |
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 KingdomPosts: 228 |
rm command working well there ![]() |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |