I want to start multiple applications using python script, basically there will be one text file which contains the paths of executable files and I want to open all of those applications one by one.
I tried it by using subprocess.Popen but it opens only first application from text file and even it executes only when text file has path of only one application, if I try to save multiple paths in text file then python script shows an error: [WinError 2] The system cannot find the file specified
I tried with readlines method too, but it didn't worked
Below is the code I'm trying to execute
with open(path) as file:
for x in file:
subprocess.Popen(x)
Paths.txt file:
C:\Windows\notepad.exe
C:\Program Files\Sublime Text\sublime_text.exe