How to store output of command in variable in cmd?
===

i want to store output of command in variable in batch programming please help me..thanks in advance..

like i want to store output of find command in variable p
set p=find /c "chi*" "file.txt"