Capturing system commands

This is a discussion on Capturing system commands within the C Programming forums, part of the General Programming Boards category; Is there a way to run a command and then put the return into a variable?...

  1. #1
    Registered User
    Join Date
    Dec 2002
    Posts
    32

    Capturing system commands

    Is there a way to run a command and then put the return into a variable?

  2. #2
    Registered User
    Join Date
    Dec 2002
    Posts
    32
    For the first code my broswer says:

    C:\DEV-CPP\mingw32\bin\ld.exe: cannot open output file C
    Permission denied

    and borland command line tools doesent support popen

  3. #3
    Registered User
    Join Date
    Dec 2002
    Posts
    32
    Never mind, my computer was messing up
    thanks

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. running system commands??
    By killdragon in forum C++ Programming
    Replies: 13
    Last Post: 09-25-2004, 03:49 PM
  2. what can i type into msdn to bring up all the system commands
    By Shadow12345 in forum Windows Programming
    Replies: 10
    Last Post: 12-30-2002, 06:58 PM
  3. System(); commands
    By Ryan in forum C++ Programming
    Replies: 15
    Last Post: 03-15-2002, 07:05 PM
  4. system commands
    By mervin in forum C Programming
    Replies: 3
    Last Post: 02-03-2002, 09:01 AM

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