Bat

Prev Next Home Home Table Of Contents Index

Bat (String)

Bat is used to write a line to the batch file the same way that lines under OnKey commands do. All the same rules apply. The batch file is created and executed when the menu exits. Thus if Bat commands are intermixed with other MarxMenu commands the other MarxMenu command are executed first. The Bat command actually only puts the command in a buffer for later execution.

Bat statements give you more control over what MarxMenu executes and allow you to include the contents of MarxMenu variables in your batch files or use complex formulas to create batch file lines.

When using Bat under an OnKey statement, be sure to use the vertical bar in front of it. Bat gives you more control over what is sent to the batch file that MARX.BAT executes.


Example:
OnKey 'D' CLS |BAT "DIR " HomeDirectory '\' UserName PAUSE

See Also: OnKey

Category: Execution

Prev Next Home Home Table Of Contents Index

Sponsors
Shopping
Forum
Forum
email
EMail
Index
Index
Home
Home