| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | netmgr runexternal |
RW> h-search is a batch file. [..]
MK> NetMgr is also a little dense and can't guess your thoughts. If you
MK> mean "batch file" you have to write a name of a batch file:
MK> 'h-search.bat'.
actually not... netmgr finds and executes the bat file without the
extension just fine...
for example (taken basically from the docs)... files i created are in
square brackets at the beginning of each section... each section is
separated by two blank lines... i elected to look for messages addressed to
footest without the received bit, process them, and then turn on the
received bit so they wouldn't be processed again... the .bat file doesn't
even use the [subject] data and it is only included for example and
completeness...
[command line]
netmgr -Cfootest.cfg
[footest.cfg]
ScanDir z:\mail
Log z:\netmgr\nmgrfoo.log
mask *, *, footest, 1:3634/12.0, *, -r
action runexternal footest [repfile] [subject]
action rewrite *, *, *, *, *, +r
[footest.bat - 4DOS!]
{at}echo off
rem this next line logs _all_ command line parameters
echo %& >> footest.log
rem this next line creates the mask line for netmgr to read on return
echo Automatic Reply, {at}myaka, *, *, Response to your message, * >> %1
rem these next five lines create the message
echo Hello %%ffrom! >> %1
echo. >> %1
echo This is an automatic reply! >> %1
echo. >> %1
echo Greetings! >> %1
rem this is the end of the .bat file
:end
[footest.log - created by the footest.bat file. note three word subject]
Z:\NETMGR\netmsg.rep foo test #1
[nmgrfoo.log - created by netmgr]
30 Apr 15:55:33 NMGR Begin, NMGR 1.0y (436 K)
30 Apr 15:55:33 NMGR Scanning z:\mail (206 msgs)
30 Apr 15:55:52 NMGR FILEd msg#222 in Z:\NETMGR\netmsg.msg
30 Apr 15:55:52 NMGR Executing: "footest D:\FD\NETMGR\netmsg.rep foo
test #1"
30 Apr 15:57:16 NMGR Saving message as #0
30 Apr 15:57:16 NMGR Bounced msg#222 to mark lewis (1:3634/12.0)
30 Apr 15:57:16 NMGR Saving message as #222
30 Apr 15:57:16 NMGR Rewrote msg#222.
30 Apr 15:57:16 NMGR End, NMGR 1.0y (427 K)
hope this helps...
)\/(ark
* Origin: (1:3634/12)SEEN-BY: 10/1 3 14/300 34/999 90/1 106/1 120/228 123/500 134/10 140/1 222/2 SEEN-BY: 226/0 249/303 261/20 38 100 1404 1406 1418 266/1413 280/1027 320/119 SEEN-BY: 393/68 396/45 633/104 260 267 285 690/682 712/848 800/432 801/161 189 SEEN-BY: 2222/700 2320/100 2905/0 @PATH: 3634/12 123/500 261/38 633/260 267 |
|
| 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™.