How to Store Dir and findStr result in variable in batch file

  batch-file, cmd, windows

I am working on creating a batch file which will perform some operations I am having trouble saving the result of the command into a variable. The command is below,

dir /b /s *.bin | findstr /i "non_RSA_"

this gives me one file from a directory I need to save the path of the file into a variable so I can use elsewhere in the batch file.

Source: Windows Questions