>I can write batch files to do most of it, but dialing in, hanging up, and
>the sequencing is killing me.
_Search for a package called "NDIAL32", I don't remember
where I got it, but if you can't find it I'll email it, it
is about 50K.
Here is what it says:
----------------------------------------------------------------------
NDial32 and NHang32: 5/10/95 by Mark Gamber
NDial32 is a small utility which connects to a dial-up server using a DOS
or Windows command line. The program command line is formatted as such:
ndial32 connection,domain,username,password
For example, if you have a server called "INet", you want the domain to be
"inet.net", your user name is "myname" and your password is "mypwd", you would
specify a command line like:
ndial32 INet,inet.net,myname,mypwd
When combined with the START program and it's "/wait" option, this program
is useful when building a batch file to check your email, for example. A batch
file of this nature (what I use, anyway) could look like this:
start /w ndial32 INet,inet.net,myname,mypwd
start /w c:\windows\inet\weudora.exe
nhang32 INet
That "nhang32 INet" is the "disconnect" utility, also included. To end a
connection from the command line, use nhang32.exe and specify the connection
name as shown in the example batch file above. If found, the connection will
be ended.
These programs may be freely distributed. IByusing this package, the user
assumes full responsibility for it's proper use and may not hold the author
liable for any loss or damage. If unable to accept this restriction, the
programs may not be used and must be destroyed immediately.
----------------------------------------------------------------------
>handling the dialer, but as the the sequencing,
Get a copy of ARJ V2.60 or later. It has a feature that
will cause it to name its .ARJ file (like .ZIP but better)
to the current time stamp.
[snip]
h#: append date string to name
h#1: append time string to name
h#2: append DHHMMSS to name
[snip]
My batch file looks some thing like this:
[snip, put NDIAL here]
if NOT exist send.rep GOTO GetMail
ECHO.
ECHO Souping up mail to send
ECHO.
cd \YARN\SEND
C:\U95\unzip -o \YARN\send.rep
ECHO.
ECHO.
\YARN\vsoup -s -n smtp://name:password@isp
ECHO.
cd \YARN
REM Keep the last three packets mailed:
if exist rep3.rep DEL rep3.rep
if exist rep2.rep RENAME rep2.rep rep3.rep
if exist rep1.rep RENAME rep1.rep rep2.rep
if exist send.rep RENAME send.rep rep1.rep
::
:GetMail
ECHO.
ECHO Importing Mail from ISP
ECHO.
\YARN\vsoup -n pop3://name:password@isp
REM NHANGUP here, but make sure vsoup is done!
ECHO.
if NOT exist AREAS Goto NoMail
REM Add date naming -H stuff here
C:\UTL\arj ac msg-cson *.msg AREA*.*
::
REM Part of Spam filtering (you need to see my filter file
REM for this to make sense):
if exist \YARN\BOB\MAIL\inbox rename \YARN\BOB\MAIL\inbox bpaddock
if exist \YARN\BOB\MAIL\spam rename \YARN\BOB\MAIL\spam inbox
import -u
if exist \YARN\BOB\MAIL\inbox rename \YARN\BOB\MAIL\inbox spam
if exist \YARN\BOB\MAIL\bpaddock rename \YARN\BOB\MAIL\bpaddock inbox
::
REM For strange reasons I get newsgroups on my wifes machine
REM at times and this deals with that because it looks like
REM spam to my machine when importing her msg-cson.arj packet:
if exist \YARN\BOB\MAIL\spam cd bob\mail
if exist \YARN\BOB\MAIL\spam call \yarn\resend spam
if exist \YARN\BOB\MAIL\spam cd \yarn
::
:NoMail
yang -q
yind /b /zz
choice /TN,5 This message will stay for 5 seconds unless you hit "Y" or "N":.
ECHO.
ECHO.
ECHO.
ECHO Starting YARN95
ECHO.
yarn
Exit
quit