I have a req where we have set of batch xml files in C:\Today\set folder and I need to execute these xml files one by one automatically using batch script and if these files execute successfuly goes to success.log file if they are failed then will go to error.log file and scheduleBatch.cmd is inbuit utility file which executes these xml files.Please help me out how to design the code with this req.I really appreciate your help and Thanks in advance
For %%z in ("%xml_dir%\*.xml") do (
call schedulebatch "%%z" %userid% %pwd% %hyp_server%
if errorlevel 1 >>"C:\Today\xml-error.log" echo "%%z" failed
if not erorlevel 0 >>"C:\Today\xml-pass.log" echo "%%z" succeeded
Looking for great gifts under $100?
Trendy tech gifts don't require a hefty price tag. Choose from these CNET-recommended useful and high-quality gadgets.