Difference between revisions of "RunBatchScript"
Jump to navigation
Jump to search
imported>Scruggs (update) |
imported>Scruggs (add filename param and example) |
||
Line 2: | Line 2: | ||
'''Syntax:''' | '''Syntax:''' | ||
(nothing) RunBatchScript | (nothing) RunBatchScript filename:string | ||
'''Example:''' | |||
RunBatchScript "myScripts\script.txt" ; runs script contained in Oblivion\myScripts\script.txt | |||
Runs a specified text file under the Oblivion directory as a script. | Runs a specified text file under the Oblivion directory as a script. |
Revision as of 10:28, 25 November 2007
A command for Oblivion Script Extender
Syntax:
(nothing) RunBatchScript filename:string
Example:
RunBatchScript "myScripts\script.txt" ; runs script contained in Oblivion\myScripts\script.txt
Runs a specified text file under the Oblivion directory as a script.
Notes
- Because the batch script runs on a temporary script object, it behaves as if each script line was called from the console. Therefore, variable declarations are ignored, and reference functions require an explicit calling reference.
- Every line in the batch file will run before control passes back to the calling script.