1) SET xml_dir=%1
SET hyp_server="server name"
For %%z in (%xml_dir%\*.xml) do schedulebatch %%z %hyp_server%
SET RC=%ERRORLEVEL%
EXIT /B %R C%
Right nw working on this genric script
above 1st batch script I have written for genric script(which launch a set of batch .xmlfilesfrom any folder and scheduling it through windows task scheduler at a predefined time to run particular folder)
My 1st scipts is not working properly as expected. Am I missing something! please help me out on what lines to be added to make as expected.
For this 1st script Let say there are n number of batch xml files that needs to be executed by the bat script and shedule these xml by windows task scheduler(daily monthly weekly) .How do i go about designing a script that will do the following:
1. executing a list of n nuber of files to run from that folder.
2. Do I need to pass any kind of parameters or set up any variables
3. If the execution is successful the next file in the order is executed automatically and so on and goes to script\success.log file .If it is failed it should goes to script\Failed.log file
how the error handling can be done to this script
Do i put the above inside a function and pass the files as arguments or do i go with loops. Please help me out , i'd be extremely grateful. Thanks in advance