Skip to content

Open Terminal

A very small starter script that opens a terminal on a windows computer and runs tree, a directory-listing command.
Use this pattern to run any command you like by changing the command after STRING on the last line.

  • GUI r opens the Run dialog on Windows (Win + R).
  • STRING cmd types cmd into the Run dialog.
  • ENTER presses Enter to launch the app.
  • STRING tree types the tree command into the Command Prompt window.
  • DELAY pauses execution so the OS has time to react; DEFAULTDELAY sets a baseline.
DEFAULTDELAY 200
DELAY 500
GUI r
DELAY 150
STRING cmd
ENTER
DELAY 300
STRING tree
ENTER