| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Re: AmigaDOS 8^( |
In a message of Craig Hutchison (3:633/265.6) wrote:
Hi Craig,
CH> Can somebody, a little more knowledgeable in AmigaDOS wildcards, tell
CH> me why the following script won't find any of my inbound mail packets.
CH> If exists Mail:MailIn/#?.((mo|tu|we|th|fr|sa|su)[1-9]|PKT)
CH> Echo " You Actually got MAIL..." Endif
CH> If not exists Mail:MailIn/#?.((mo|tu|we|th|fr|sa|su)[1-9]|PKT)
CH> Echo " NO INBOUND MAIL..."
CH> Endif
Wildcards don't work in this context. Here's a 'work-around' that I use
quite effectively here though:
-----8<-----
FailAt 21
Echo "Checking for New Mail..." NOLINE
Dir >NIL: In:#?
IF NOT ERROR
Echo "New Mail Found on `Date`"
Echo "Nodelist Processing Started..."
Echo "Checking for Node Diff ... " NOLINE
DIR >NIL: In:NODEDIFF.L??
IF ERROR
Echo "None Found."
ELSE
Echo "New Node Diff Found."
... and so on ...
-----8<-----
That should give you the idea of what to do. Don't forget to set your
failat high enough to avoid having the script fail on one of the 'dir'
commands and you should probably reset it again at the end of the script.
// CYA,
\X/ Dave ;-)
... Aha! another "undocumented feature!"
---
* Origin: Pointing off 'The Ice Cave' - Longreach, Qld (3:640/535.1)SEEN-BY: 620/243 621/525 623/630 624/300 633/203 353 359 371 640/535 711/401 SEEN-BY: 711/409 413 430 808 809 934 712/515 713/888 714/905 906 908 909 932 SEEN-BY: 774/640 800/1 30330/1 @PATH: 30330/1 640/535 633/359 714/909 906 711/808 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.