@ECHO * * *
FOR %%i IN (D:\XML_to_Word\*.xml) DO ( @ECHO XML2FO @ECHO Start @ %date% %time% findstr \c "Findstring1" "%%i" if %errorlevel%==0 ( D:Saxonica\Transform.exe -s:"%%i" -o:"D:\XML_to_Word\%%~ni.fo" -xsl:"zzzzz.xslt" -dtd:off del "%%i" ) findstr "Findstring2" "%%i" if %errorlevel%==0 ( C:Saxonica\Transform.exe -s:"%%i" -o:"D:\XML_to_Word\%%~ni.fo" -xsl:"yyyyy.xslt" -dtd:off del "%%i" ) findstr "Findstring3" "%%i" if %errorlevel%==0 ( D:Saxonica\Transform.exe -s:"%%i" -o:"D:\XML_to_Word\%%~ni.fo" -xsl:"xxxx.xslt" -dtd:off del "%%i" ) @ECHO End @ %date% %time% @ECHO * * * )
ERRORLEVEL
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)