I have a program on с++ with a graphical interface written in Visual Studio 2012. Screenshot attached ( mal.jpg ). The program scans malicious files ( malware ) for signatures using the yara tool and the rules by which we determine the type of malware. You've probably heard of him. When I click on the "scanning for malware" button, I open a command line, in the code I wrote - system("cmd.exe"); Further we write already in whom. line yara64 -r virusbase.yara С:\Users\.. folder name. and scan the folder for the presence of malware in it. If the scanner finds a virus, then it will definitely display its name and the path to it in whom. line. link to the screenshot of the interface of my program
Question: Is it possible to register in the code so as to display all the contents of the com. the lines directly to the program interface, let's say inside checkedlistbox1 so that you can then select the desired malware with a tick and delete it when you click on button1 ? how to implement it? Is it even possible? I want to make sure that the command line does not open and we did not manually enter everything, and somehow write in the code the command to scan " yara64 -r virusbase.yara С:\Users\.. folder name." and the whole process, all output displayed immediately on checkedlistbox1 or on textbox . Then I would like to further note the malware and delete this file through the interface of my program. In general, at least to begin with, except for deleting through the button, everything else can be done? Help friends in general. I would be grateful for any help.