I am developing a program in python, however I have a little problem because the data that my program needs, it is from the result of a bat file, so I would like to create something that I help me to run just my script in python and not use the bat file directly.
Well, right now, I have to execute the following steps:
- I create a txt file where I enter the input data (For example: A.txt)
- I run the BAT file using the file A.txt
- It creates a new file txt which has the result of running the BAT file (For example: B.txt)
- I open the file B.txt and I copy all data and then I paste it in a new txt file, where it will serve as input data to my program in python
- I run my program in python
- it creates a new file txt where has the final results
- End
How can I improve this, I mean, Which scripts I need to run my program in Python without to go to the Bat file and to do the steps that I describe above?