excuting a system file

This is a discussion on excuting a system file within the C++ Programming forums, part of the General Programming Boards category; this could either be done in c++ or c, how do i go about creating an exe program that will ...

  1. #1
    Registered User
    Join Date
    Apr 2005

    excuting a system file

    this could either be done in c++ or c, how do i go about creating an exe program that will call another program stored on my computer

    e.g. c.exe to call (javaw - jar test.jar)

    javaw is set in environment variables so it should be able to be called directly



  2. #2
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    There's a tutorial for it on this same website; www.cprogramming.com
    The programmer’s wife tells him: “Run to the store and pick up a loaf of bread. If they have eggs, get a dozen.”
    The programmer comes home with 12 loaves of bread.

    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  3. #3
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    To be exact: http://faq.cprogramming.com/cgi-bin/...&id=1043284392

    You'll need to create the string before hand if you use system, perhaps with sprintf().

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell

    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  4. #4
    Registered User
    Join Date
    Apr 2005
    thx i did try to have a look but obviously didnt look to hard

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem building Quake source
    By Silvercord in forum Game Programming
    Replies: 16
    Last Post: 07-11-2010, 10:13 AM
  2. Inventory records
    By jsbeckton in forum C Programming
    Replies: 23
    Last Post: 06-28-2007, 05:14 AM
  3. Basic text file encoder
    By Abda92 in forum C Programming
    Replies: 15
    Last Post: 05-22-2007, 02:19 PM
  4. Simple File encryption
    By caroundw5h in forum C Programming
    Replies: 2
    Last Post: 10-13-2004, 11:51 PM
  5. Replies: 4
    Last Post: 10-21-2003, 05:28 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21