Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Filename and folder partial matching and move
#5
Is this what you want?

Macro Kingdoms
Code:
Copy      Help
;input for pattern to search for
str name
int ok=inp(name "Enter Partial Filename" "Name to search")

;search folder
str location
BrowseForFolder(&location "" 5)

;enumerate files
ARRAY(str) a
GetFilesInFolder a location _s.from("*" name "*") 2

;show results
str dirname=location
if(location.getfilename=name) out dirname
out a


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)