|
Answer» Hi All
I have simple batch job applicaiton which is suppose to checek network folders and generate report both on screen and to file.
Small PART of that applicaiton looks LIKE that: ===================
ECHO ------------------ echo Product Hierarchy: echo ------------------
echo. >> %Date%.txt echo.Files from Folder >> %Date%.txt echo.------------------ >> %Date%.txt
echo. >> %Date%.txt echo.Files%Date%.txt echo. >> %Date%.txt echo Files echo.
dir \\ network_folder /b >> %Date%.txt dir \\ network_folder /b ============
Is any change to improve that code as I have to repeat similar inforamtions few times as you can see(once is move to txt file, another is info on screen)?
Is POSSIBLE to add any inforamtion "if.. else" in that sence: if *.xml file found send mail to administrator?
Thank you very MUCH for help.
|