Skip to content

Execute

execute {file} [arguments...]

Also searchable as: Execute · run program · open file · start

execute opens a program, a file or a web address, as Windows does when you double-click it: a program runs, a document opens in its program, an address opens in the browser. The script then waits two seconds and goes on; it does not wait for the program to finish.

Parameter Meaning
file What to open. A path with spaces has to be glued together, as with call.
arguments Optional. Passed to the program.
execute notepad.exe C:\EasyUO\notes.txt
execute https://github.com/ilpersi/EasyUOReforged
halt

Append a line to a text file with the command prompt:

set %task mining
execute cmd.exe /c echo %task #CharPosX #CharPosY >> C:\EasyUO\log.txt
halt

See also

Based on the EasyUO wiki, edited for EasyUO Reforged. This text is available under the GNU Free Documentation License 1.2.