Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Changing filenames with wildcards
#5
Code:
Copy      Help
;standard enumerate files code
Dir d
foreach(d "C:\*24 T2*" FE_Dir)
,str sPath=d.FileName(1)
,;out sPath
,
,;use for example endi
,if(!sPath.endi(".oly"))
,,out sPath
,
,;or use regular expression
,if(findrx(sPath "^C:\\.*24 T2$")=0)
,,out sPath

;(not tested)


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)