Capturing return value in command prompt

Closed
hari galam - Aug 3, 2009 at 08:58 AM
 Anonymous User - Aug 3, 2009 at 10:01 AM
Hello,

How to catpure/get the return value when any statment/script is executed in command prompt.

1 response

Anonymous User
Aug 3, 2009 at 10:01 AM
Hi !

Do you mean that you want to save the result of a DOS command on the command prompt ? That's it ?

You should precede the command with this : > c:\text.txt

That way, the result of the command will be saved on the file text.txt.

C u !
-5