Advertisement
axyd

Starting multiple programs if not running with batch file

May 7th, 2015
526
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.68 KB | None | 0 0
  1. @echo off
  2.  
  3. echo ###Starting Chrome###
  4. tasklist /FI "IMAGENAME eq chrome.exe" | find /i "chrome.exe"
  5. IF ERRORLEVEL 1 start "" "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"
  6. echo Waiting 3 Seconds...
  7. ping -n 3 -w 1 127.0.0.1>nul
  8.  
  9. echo ###Starting Logitech Gaming###
  10. tasklist /FI "IMAGENAME eq LCore.exe" | find /i "LCore.exe"
  11. IF ERRORLEVEL 1 start "" "C:\Program Files\Logitech Gaming Software\LCore.exe"
  12. echo Waiting 3 seconds...
  13. ping -n 3 -w 1 127.0.0.1>nul
  14.  
  15. echo ###Starting Teamspeak###
  16. tasklist /FI "IMAGENAME eq ts3client_win64.exe" | find /i "ts3client_win64.exe"
  17. IF ERRORLEVEL 1 start "" "C:\Program Files\TeamSpeak 3 Client\ts3client_win64.exe"
  18. PAUSE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement