


# https://www.globalsino.com/ICs/
# Create a bat file and use it to interact with app (to open IE Edge here)


myBatFile = open(r'C:\GlobalSino20230219\ICs\images3\BatTwo.bat','w+')
myBatFile.write('cd ..\n')
myBatFile.write('cd ..\n')
myBatFile.write('cd ..\n')
myBatFile.write('cd Program Files (x86)\n')
myBatFile.write('cd Microsoft\n')
myBatFile.write('cd Edge\n')
myBatFile.write('cd Application\n')
myBatFile.write('msedge.exe')
myBatFile.close()


import subprocess

myPath = r"C:\GlobalSino20230219\ICs\images3"
command = 'BatTwo.bat'
subprocess.Popen('start cmd /k '+ command, cwd=myPath, shell=True)





