Running Two Exe Files With A Single Batch File In Python
I wanted to run two programs using a single batch file in python. The code below does this, but I want that, when the first program has finished executing the second program will s
Solution 1:
@echo off
setlocal
start "my_yahoo" /D "C:\Users\User1\Desktop\Softwares\" "YahooMessenger"
start /WAIT "my_gtalk" /D "C:\Users\User1\Desktop\Softwares\" "Googletalk"
for /f "tokens=2 delims=," %%i in ('tasklist /nh /fo csv /fi "WINDOWTITLE eq my_yahoo"') do taskkill /PID %%i /F >NUL 2>&1
endlocal
exit/B
Post a Comment for "Running Two Exe Files With A Single Batch File In Python"