Maybe it looks simple question, but I couldn't find appropriate answer. I am wondering is it possible to run .bat or .exe file from text file, for example, 1st we will retrieve the File object from the file chooser, then grabbing its path and throwing it into the text file. After by reading this path from text file (find a location of program), execute .bat or .exe program? For example, if 1st file in location: Libraries\Documents\pro.bat and location of 2nd file: E:\pro2.exe. Then by storing this path to text file test.txt:
Libraries\Documents\pro.bat
E:\pro2.exe
after execute it?
Actually I have done this parts: - retrieve the File object from the file chooser and save its path to text file. But I don't know how to run it from text file. Can someone give me a right direction. Any help is really appreciated.