Thread: How to execute a hidden command line operation?

  1. #1
    Registered User
    Join Date
    Jan 2009
    Posts
    31

    How to execute a hidden command line operation?

    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.

  2. #2
    Algorithm Dissector iMalc's Avatar
    Join Date
    Dec 2005
    Location
    New Zealand
    Posts
    6,318
    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"

  3. #3
    apprentiCe
    Join Date
    Oct 2008
    Location
    Hyderabad,India
    Posts
    136
    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);

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. i=++i; operation undefined?
    By password636 in forum C Programming
    Replies: 10
    Last Post: 04-16-2009, 09:46 AM
  2. how to change this simple opeation into power operation..
    By transgalactic2 in forum C Programming
    Replies: 9
    Last Post: 12-20-2008, 03:17 PM
  3. Replies: 5
    Last Post: 12-04-2008, 08:15 PM
  4. Replies: 16
    Last Post: 11-23-2007, 01:48 PM
  5. Serial Communications in C
    By ExDigit in forum Windows Programming
    Replies: 7
    Last Post: 01-09-2002, 10:52 AM