Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

how to send a different file every day ?

Help
2005-09-30
2013-05-29
  • phouvenaghel
    phouvenaghel
    2005-09-30

    i'm using a backup software. it create a different file every day with the result of the job.
    i want to use BLAT.EXE for sending this new file every day.

     
    • Chip
      Chip
      2005-09-30

      The easiest method is to use a batch file with a FOR loop to process files.  The string to match will have to be defined for your backup software, but this line below does essentially what you need.  After your backup software completes, run this batch file, making sure to not call it blat.bat.

      for %%F in (*.log) do blat.exe %%F -t <emailaddy> -s "Subject of the day"

      --
      Chip

       
    • Fritz
      Fritz
      2007-12-21

      I use an Access database to create a batchfile with the filename and the commands to send the mail. My files have a filename with a appended datestring (e.g. File_Dec07.xls)