home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / sunrise / clasfy30.zip / EXCHANGE.BAT < prev    next >
DOS Batch File  |  1993-05-10  |  4KB  |  86 lines

  1. In the following example we are using the D'Bridge mailer and the internal 
  2. D'Bridge file transmision utility, DButil. You may use any mailer and 
  3. substitute the appropriate file transmission utility in place of DButil.
  4. For instance any reference to DButil may be replaced by Xrobot, a file
  5. transmission utility most often used with the Front Door mailer. Consult your
  6. mailer and file transfer utility documentation for the appropriate commands.
  7.  
  8. The example batch file provided below should be called each night from your
  9. event batch file and need be run only once a day. You may run it more than 
  10. once however, version 3.0 of Classified Ads will mark each Ad and message
  11. as exported, the first time and will not resend the ads unless you have 
  12. removed the export flag via the provided CLMaint utility. The only advantage
  13. to running this batch file more than once a day is when adding a new member 
  14. to your Classified Ads network. 
  15.  
  16.  
  17. This example batch file will work for both hubs and net members however, the 
  18. net members will need only to send to the one address used by their hub.
  19.  
  20.    @echo off
  21.  
  22. Rem *** Change directory to your mailer's inbound files directory.
  23.  
  24.    cd\db\files
  25.  
  26. Rem *** Copy the Classified Ads files (exports from other systems) into your
  27. Rem *** Classified Ads directory. Please NOTE the "*" wildcard is mandatory
  28. Rem *** as the exchange program will add a random number to the end of the
  29. Rem *** name you have specified in your configuration file. This was done to
  30. REM *** prevent accidental mailer overwrites or rejections.
  31.  
  32.    copy *.axp I:\ra\doors\classb1
  33.    copy *.mxp i:\ra\doors\classb1
  34.  
  35. Rem *** Delete the files from your mailer directory, this is optional but does
  36. Rem *** keep the directory cleaner. Also, if you have a Move utility you may 
  37. Rem *** use that (make sure it's in your path) to perform the copy and delete
  38. Rem *** in one step.
  39.  
  40.    del *.axp
  41.    del *.mxp
  42.  
  43. Rem *** Change directory to your Classified Ads directory.
  44.  
  45.    cd\ra\doors\classb1
  46.  
  47. Rem *** Run the Cl-Exchange program with the IMPort/EXPort option to import
  48. Rem *** the files, and create your export. A quick review of the documentation
  49. Rem *** provided with Classified Ads will show you that you may also run an
  50. Rem *** import and/or an export separately, just substitute the appropriate
  51. Rem *** command.
  52.  
  53.    clexch IMPEXP classb11.cfg
  54.  
  55. Rem *** Now copy (or move) the export Ad and message files you have just 
  56. Rem *** created to your mailers outbound file area. 
  57. Rem *** (D'Bridge uses the same area for inbound and outbound.)
  58. Rem *** Once again NOTE the "*" wildcard is very inportant.
  59.  
  60.    copy wit*.axp i:\db\files
  61.    copy wit*.mxp i:\db\files
  62.  
  63. Rem *** Change directory and execute your file transmission utility. D'Bridge
  64. Rem *** requires your utility to be run from the D'Bridge directory but, others
  65. Rem *** such as Xrobot may be pathed or kept in a separate directory. Please
  66. Rem *** consult your file transmission utility documentation.
  67.  
  68. cd\db
  69.    dbutil i send 142:150/55 i:\db\files\wit*.?xp
  70.    dbutil i send 99:602/0 i:\db\files\wit*.?xp
  71.    dbutil i send 142:150/102 i:\db\files\wit*.?xp
  72. cd\ra\doors\classb1
  73.  
  74. In this example, particular mention of specific utilities and/or mailers in
  75. no way reflects endorsement by the author but rather are provided as an aid
  76. to the end user.
  77.  
  78. This batch file example was provided by:
  79.  
  80.                      Pam Smith
  81.                      Window In Time
  82.                          1:114/203
  83.                      602-253-1946 (9600)
  84.  
  85.              Freq: "Sunrise" for all Sunrise Doors.
  86.                 "Allfiles.zip" for an individual list.