Command Prompt for Windows




Command DATA

Function:

Clear or add items to a global list.

Syntax:

DATA [item, ...]
itemSequence of characters.

Note:

When no parameters are specified for command DATA then the global list is cleared.

Each item is separated by commas and multiple DATA commands simply append items to the global list.

Each batch file receives its own global list. A batch file can not affect the global list of another batch file. Also, the global list is automatically discarded when a batch file ends.

An item is retrieved from the global list by using command READ.

Example on using DATA.

Also see command READ and Batch Files.