I'm trying to make my program run a search with findstr, but when i use system() it is visible. Is there a way I can make this completely transparent? I'm planning on distributing this application if that matters, so portability is a big deal.
I'm trying to make my program run a search with findstr, but when i use system() it is visible. Is there a way I can make this completely transparent? I'm planning on distributing this application if that matters, so portability is a big deal.
Then why use findstr (whatever that is). If all it does is open a file, do a search, and close the file again, then perhaps you could code that yourself?
Need some example code to start you off?
My homepage
Advice: Take only as directed - If symptoms persist, please see your debugger
Linus Torvalds: "But it clearly is the only right way. The fact that everybody else does it some other way only means that they are wrong"
yeah or may be your "findstr" has a some option(switch) like -s or something to run it silently, without displaying output.
Last edited by creeping death; 03-30-2009 at 12:57 AM.
Code:printf("%c%c%c%c%c%c%c",0x68,0x68^0xd,0x68|0x4,0x68|0x4,0x68|0xf,0x68^0x49,0x68^0x62);