Storing the result of a file execute in a variable

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • akrall
    Forum Member
    • Mar 2003
    • 6

    Storing the result of a file execute in a variable

    Guys... is there a way to store the output of a DOS command ran using file/execure or open so that the var can be printed or used for something inside AMS40?

    Thx for you help.
  • Lorne
    Indigo Rose Staff Member
    • Feb 2001
    • 2729

    #2
    Re: Storing the result of a file execute in a variable

    Use a batch file, and redirect the output of the DOS command to a text file. Example:

    <pre>@DIR *.EXE >foo.txt
    @cls
    @exit</pre>
    --[[ Indigo Rose Software Developer ]]

    Comment

    Working...
    X