Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Search short file path (tilde)
#2
Macro Macro1282
Code:
Copy      Help
_s.setfile("$temp$\abcdef~1.txt")
_s.setfile("$temp$\abcde~12.txt")
_s.setfile("$temp$\abcd~123.txt")
_s.setfile("$temp$\abc~1234.txt")

out
ARRAY(str) a
GetFilesInFolder a "$temp$" "^(.{6}~\d{1}|.{5}~\d{2}|.{4}~\d{3}|.{3}~\d{4})\.[^\.]{3}$" 0x10004
int i
for i 0 a.len
,out a[i]


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)