I am trying to open multiple notepad files using Python script. I was successful with opening one using import subprocess and subprocess.call method and specifying the file path. However, this doesn't work for opening multiple notepad files. The second notepad opens only after I close the first notepad.
Script that I use for opening One Notepad (this works well):
import subprocess
subprocess.call(['cmd.exe','/c','D:\Folder1\Notepad1.txt'])
Script that I use for opening Two Notepads (this doesn't work):
import subprocess
subprocess.call(['cmd.exe','/c','D:\Folder1\Notepad1.txt'])
subprocess.call(['cmd.exe','/c','D:\Folder1\Notepad2.txt'])
I was expecting to see both the notepad files getting opened in multiple windows, but the second one opens only after I close the first notepad.