how to stop a DOS window from showing???


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: how to stop a DOS window from showing???

  1. #1
    Mark Moore Guest

    how to stop a DOS window from showing???


    Does anybody know how to stop a DOS window from showing when runing a *.exe
    file from Windows Start run box?

    Im trying to get a *.exe file to copy files in the background without the
    DOS window showing i.e

    #include<sdtio.h>
    #inlcude<stdlib.h>

    void main()
    {

    FILE* file= fopen("c:afile.txt","a");// open a file for appending
    file=freopen("c:afile.txt", "a",stdout);// redirect standard output to file
    system( "copy c:afile.txt a:");// Dont want windows to show DOS window here!!

    };



    Thanks in advance


  2. #2
    ralph Guest

    Re: how to stop a DOS window from showing???


    "Mark Moore" <a1iasjones@mailexcite.com> wrote:
    >
    >Does anybody know how to stop a DOS window from showing when runing a *.exe
    >file from Windows Start run box?
    >
    >Im trying to get a *.exe file to copy files in the background without the
    >DOS window showing i.e
    >
    >#include<sdtio.h>
    >#inlcude<stdlib.h>
    >
    >void main()
    >{
    >
    >FILE* file= fopen("c:afile.txt","a");// open a file for appending
    >file=freopen("c:afile.txt", "a",stdout);// redirect standard output to file
    >system( "copy c:afile.txt a:");// Dont want windows to show DOS window here!!
    >
    >};
    >
    >
    >
    >Thanks in advance
    >


    The easiest way is just don't use the condole.
    Write a Win32 Windows application and don't 'show' a window.



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center