Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Run muliple batch file logging the time taken & status to txt file

$
0
0

Dear all,

        I am new to Auto I and I need all your kind suggestons & help.

 

I have received many batch files and they need to be executed sequentially.

Each batch files takes a lot of time and I want to use Auto It to run them sequentially

logging the time taken and status of each batch file to txt file.

 

Now I am able to run one batch file and pop time taken. But want to change.
Please help me.

My batch files:

Test1.bat~Test20.bat (20 files)

My present code:

$StartTime=TimerInit()

RunWait("C:\TestFile\Test1.bat")

$EndTime=TimerDiff($StartTme)

Msgbox(0,"Time ","Time taken to run batch 1 is:"&$EndTime)

 

Kindly note each batch file exits after a key is clicked.

 

Can any body help how to run them sequentially and log the time and status of batch file completed (Success/error)

 

Thanking you in advance.


Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>