Execute
CommandMiscellaneous
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.
Parameters
Section titled “Parameters”| Parameter | Meaning |
|---|---|
file |
What to open. A path with spaces has to be glued together, as with call. |
arguments |
Optional. Passed to the program. |
Examples
Section titled “Examples”execute notepad.exe C:\EasyUO\notes.txtexecute https://github.com/ilpersi/EasyUOReforgedhaltAppend a line to a text file with the command prompt:
set %task miningexecute cmd.exe /c echo %task #CharPosX #CharPosY >> C:\EasyUO\log.txthaltSee also
Based on the EasyUO wiki, edited for EasyUO Reforged. This text is available under the GNU Free Documentation License 1.2.