Search results

  1. X

    Solved Problem with string comparison in batch script

    Funny enough, I do. That's why I had to put a space after %Cmess%. No disagreement here.
  2. X

    Solved Problem with string comparison in batch script

    That would have been the case if I didn't manipulate the log file before reading it into the Message variable. You will notice that between sending the email that created the log file and reading the contents into a variable, I executed a program called Tail (.\Tail\Tail). In this case, it...
  3. X

    Solved Problem with string comparison in batch script

    Thank you for the reply Ztrucker. Unfortunately, your suggestion didn't work. That command causes Cmess to be defined with the quotation marks as well. Fortunately, I have managed to find out what I did wrong: I didn't define the two variables in the If comparison as variables by surrounding...
  4. X

    Solved Problem with string comparison in batch script

    Greetings I am attempting to write a batch script that uses a program called Mailsend to send an email. The script then examines Mailsend's log output to determine if the email was successfully sent. This is what I have so far: mailsend1.17b14.exe -to <snip personal info> -log temp.txt...
Back
Top