CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Batch files.

  1. #1
    Join Date
    Aug 2002
    Location
    Delhi
    Posts
    57

    Batch files.

    Hi,
    I've created a batch file which would inturn launch a setup of a software. The setup has a silent installation mode so everything has to be done in the background. But whenever I launch the batch file a black window (DOS window) is also launched. How can I supress that black window from appearing.

    Thanks,
    Abhishek.
    Learning is a never ending process.

  2. #2
    Join Date
    Nov 1999
    Location
    Copenhagen, Denmark
    Posts
    265
    I think the START command under Windows might help you especially the /B switch. Do:

    Code:
    start /?"
    in a console to check it out.

    If that doesn't satisfy you can write a simple launch program using CreateProcess with the CREATE_NO_WINDOW. This, I know, will do the trick.
    Best regards,
    S. Bro

    "I would be happy to deal with my problems one at the time if they would only line up!"
    -Paul Cilwa, "Borland C++ Insider".

    Other useful fora some of which I ruthlessly clipboarded from other peoples footers.

    MSDN: http://search.microsoft.com/us/dev/default.asp
    WIN 32 Assembler: http://board.win32asmcommunity.net/
    RDBMS: http://www.dbforums.com
    Robert's Perl Tutorial: http://www.sthomas.net/roberts-perl-tutorial.htm
    Merriam-Webster Online: http://www.m-w.com/home.htm
    Writing Unmaintainable Code: http://mindprod.com/unmain.html

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured