Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 10:36 01 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: Simple file "find" tool

Author Message
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4311
Posted: 02:35pm 22 Nov 2020
Copy link to clipboard 
Print this post

Hi folks,

It's been a few weeks since I've offered anything, so here is a byproduct of my current efforts, a simple file finder that searches recursively from the CWD$ against a pattern that supports * and ? wildcards:

       find.zip

> *find *.png
A:/mmbasic-scratch/led/tom-thumb-new.png
A:/others/Defender/DefenderLogo24bit.png
A:/others/Defender/mountains.png
A:/others/Defender/particles.png
A:/others/Defender/sprites.png
A:/others/Max-E-Man/Assets/Max-E-Man_Assets.png
A:/others/Max-E-Man/Assets/Max-E-Man_Maze.png
A:/welcome-develop/games/guardian/GuardianLogo.png
A:/welcome-develop/games/guardian/mountains.png
A:/welcome-develop/games/guardian/particles.png
A:/welcome-develop/games/guardian/sprites.png
A:/welcome-develop/games/lunar/LanderPict.png
A:/welcome-develop/menu/logo-large.png
A:/welcome-develop/menu/logo-small.png
A:/welcome-develop/sprites/ghost/background.png
A:/welcome-develop/sprites/ghost/ghost.png
A:/welcome-develop/sprites/playing-cards/playing_cards_deck.png
A:/www.c-com.com.au/mmhelp/Atan2definition.png
A:/zzz-not-cmm2/misc/zx-spectrum/thwack-man/sprites-png/cat_down.png
A:/zzz-not-cmm2/misc/zx-spectrum/thwack-man/sprites-png/cat_left.png
A:/zzz-not-cmm2/misc/zx-spectrum/thwack-man/sprites-png/cat_up.png
A:/zzz-not-cmm2/misc/zx-spectrum/thwack-man/sprites-png/moose_down.png
A:/zzz-not-cmm2/misc/zx-spectrum/thwack-man/sprites-png/moose_left.png
A:/zzz-not-cmm2/misc/zx-spectrum/thwack-man/sprites-png/moose_up.png
A:/zzz-not-cmm2/ozmoo/documentation/MemoryMap.png
A:/zzz-not-cmm2/ozmoo/examples/DragonTrollMap.png
A:/zzz-not-cmm2/ozmoo/screenshots/aventyr.png
A:/zzz-not-cmm2/ozmoo/screenshots/curses.png
A:/zzz-not-cmm2/ozmoo/screenshots/germangame.png
A:/zzz-not-cmm2/ozmoo/screenshots/hollywood.png
A:/zzz-not-cmm2/ozmoo/screenshots/minizork.png


Note that because I wrote this for my own purposes it doesn't recurse into directories named ".git", but should you require otherwise it is easily changeable in the source-code, just search for the string ".git"

Hope it's useful,

Tom
Edited 2020-11-23 00:40 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: 03:35pm 22 Nov 2020
Copy link to clipboard 
Print this post

  thwill said  Hope it's useful

Another one for my PATH  
 
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