system()

This is a discussion on system() within the Windows Programming forums, part of the Platform Specific Boards category; Guys, im trying to run a .txt file from my program. I chose to use system() to do it but ...

  1. #1
    rEtaRD r HUMANS TOO !!! rEtard's Avatar
    Join Date
    Feb 2005
    Posts
    80

    system()

    Guys, im trying to run a .txt file from my program. I chose to use system() to do it but whenever i ran it, a Dos console C:/windows/system32/cmd.exe came out together with the .txt file, is it possible to remove it ? or do anybody have a better alternative to running the .txt file only without any other alien stuffs accompanying it ?
    /* Have a nice day */

  2. #2
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544
    system() without a DOS box popping out
    Code:
    ShellExecute(NULL, "open", "textfile.txt",   NULL,  NULL,  SW_SHOW);

  3. #3
    rEtaRD r HUMANS TOO !!! rEtard's Avatar
    Join Date
    Feb 2005
    Posts
    80
    Thanz anonytmous ! u always give me the best advice and examples
    /* Have a nice day */

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. File System Implementation
    By dodgeviper in forum C Programming
    Replies: 9
    Last Post: 11-16-2007, 01:04 PM
  2. Using system icons
    By @nthony in forum Windows Programming
    Replies: 1
    Last Post: 01-13-2007, 07:56 PM
  3. Linux database system needed
    By BobS0327 in forum Tech Board
    Replies: 7
    Last Post: 06-11-2006, 04:56 PM
  4. BIOS system and memory allocation problem
    By beely in forum Tech Board
    Replies: 9
    Last Post: 11-25-2003, 07:12 AM
  5. Number system base M, print numbers N digits wide...
    By biterman in forum C Programming
    Replies: 12
    Last Post: 11-19-2001, 04:31 AM

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