Community discussions

MikroTik App
 
Malf
just joined
Topic Author
Posts: 1
Joined: Mon Feb 13, 2017 12:41 am

/file find name pattern

Mon Feb 13, 2017 12:48 am

Hello. I'm using this script to sent me SMS on file created in mikrotik
:foreach i in=[/file find name~"SMS/"]  do={
/tool sms send usb3 "MyPhoneNumber" \ 
message=[/file get "$i" contents];
/file remove "$i"
}
my question is about this part
[/file find name~"SMS/"]
i want to set a pattern like
][/file find name~"SMS/*.sms"]
][/file find name~"SMS/~.sms"]
to filter file on also by extension. Can anyome help with that?

Also is that possible to get contents of file with Cyrillic character supporting ? maby file need to be on some specifin charset or something. For now when i try so sent Cyrillic message i get empty string

Who is online

Users browsing this forum: No registered users and 35 guests