Skip navigation

JSI Tip 1281. How do I force a users to run a sequence of programs?

In tip 0364, we discussed the start command.

If you require your users to run a sequence of programs to complete a task, create a batch file:

@echo off
start /wait /b <first.exe>
start /wait /b <second.exe>
start /wait /b <third.exe>

Create a shortcut to this batch file and place it on the Start menu or desktop. Set it to run minimized.

When the user double-clicks the shortcut, <first.exe> runs. When <first.exe> terminates, <second.exe> runs. When the users ends <second.exe>, <third.exe> runs. When <third.exe> exits, the batch job terminates.

Hide comments


  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.