System("myprog.here arguments") not working

This is a discussion on System("myprog.here arguments") not working within the C Programming forums, part of the General Programming Boards category; Hi there I've got a question regarding <b>system</b>. I'm trying to use this command to call a java.class program during ...

  1. #1
    Registered User
    Join Date
    Oct 2002
    Posts
    1

    Wink System("myprog.here arguments") not working

    Hi there
    I've got a question regarding <b>system</b>. I'm trying to use this command to call a java.class program during execution and pass 6 parameter to this java. <br>The thing is that if I am oing this from a c-language <b>.exe</b> it works, but if I do it from a dll, which is what i need, it doesn't. I mean it works if you call commands like <b>dir /s /o:d > file.txt</b> or even <b>java</b>, but it doesn't like parameters passed in the context of a dll. <b>What code or command could I be using instead of system ( can't make <b>execl</b> towork either ). Any suggestions or ideas very mych appreciated. <b>Thanx a lot</b>

  2. #2
    Unleashed
    Join Date
    Sep 2001
    Posts
    1,765
    This link shows how to send command line parameters to an external program.

    If this does not help, be more specific.
    The world is waiting. I must leave you now.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Function not working
    By sloopy in forum C Programming
    Replies: 31
    Last Post: 11-12-2005, 07:08 PM
  2. Program Not working Right
    By raven420smoke in forum C++ Programming
    Replies: 2
    Last Post: 09-16-2005, 03:21 AM
  3. Trying to eject D drive using code, but not working... :(
    By snowfrog in forum C++ Programming
    Replies: 3
    Last Post: 05-07-2005, 07:47 PM
  4. x on upper right corner not working
    By caduardo21 in forum Windows Programming
    Replies: 1
    Last Post: 02-20-2005, 07:35 PM
  5. cygwin -> unix , my code not working properly ;(
    By CyC|OpS in forum C Programming
    Replies: 4
    Last Post: 05-18-2002, 04:08 AM

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