Please write a DOS batch (.bat) file that does the following:
if (environment variable WD_REASON contains string FILENEW)
{
remove all newline characters in the file whose name is in the enviroment variable WD_FILE
copy the file whose name is in the enviroment variable WD_FILE to c:\temp\
}