Page 1 of 1

Keyword: playInteW - Run a program, wait

Posted: Thu Mar 18, 2021 10:27 pm
by YiMeng
Description
  • Execute a program and wait till the program terminates before proceed.
  • Has a 200ms delay at end of execution.

Parameters
  • x: The full file path for an executable for file of any extension; Use double-quote for file path with spaces
  • x: Allow the use of "@@" to specify relative path
  • y (optional): Any parameter for x; Use of double-quotes are allowed

Usage
  • playInteW "x" y
  • playInteW @@example.bat 10

Error
  • If x is not found, window will throw file not found error
  • If x is not supplied, line command is ignored

Alternative
  • Use SHELL keyword as alternative. Ex. “SHELL start /w “” programName.exe” instead.