Hello all,
Am trying to get the contents of a file into a variable.
FILE CONTAINS: (but could be anything)
[highlight]sql-job-1.sql
sql-job-2.sql
sql-job-3.sql[/highlight]
Need to get it into a Variable like ... [highlight]sql-job-1.sql,sql-job-2.sql,sql-job-3.sql[/highlight] ... if possible.
The purpuse is to include the list from the file into the body of an email ....
set MailBody=The %Product% Instance `%Instance%` has performed one or more SQL updates/query's against the database `%SQLDatabase%`. Please refer to the individual logfiles for each of the following ... [highlight]%SQLLOGLIST%[/highlight] with regards to their success.
Hope I've provided enough of an explaination.
Note: DOS batch script indicdently uses SETLOCAL ENABLEDELAYEDEXPANSION .
Many thanks in advance.