i'm trying hand @ light programming, have hit wall i'm hoping can me with. i'm using htpc , front end media center called kodi. within kodi have program called advanced launcher. mc kodi scripted on top, i've been using batch file each pc game , program i'm trying run. shuts down kodi, launches program, , when program closed, relaunches kodi. works fine programs, if has launcher attached (the example have dragon age: inquisition , launcher has origin) run straight through entire batch file without waiting thought had instructed it. seems happen in programs have launchers. i'm starting out, while lines change or add great working, i'd know reason behind changes.
pskill kodi.exe cd /d "i:\games\dragon age inquisition\" start /max /wait dragon age inquisition.exe ping 192.168.1.46 -n 1 -w 15000 > nul cd /d "c:\program files (x86)\kodi\" start /max kodi.exe
ps commands recommended friend, not sure if issue, seems odd program without launcher works fine, launcher doesn't seem function correctly. valuable time.
try with:
start "" /max /wait dragon age inquisition.exe
and
start "" /max kodi.exe
first argument title.