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

Thread: Open Dos Window

  1. #1
    Join Date
    Aug 2001
    Location
    India
    Posts
    173

    Open Dos Window

    How do I open a dos window,
    give two dos commands one after the other,
    then close that dos window.

    Thank You,
    Shivakumar G.M.


  2. #2

    Re: Open Dos Window

    but if necessary 2 command in the same dos call?

    do U think that it can work?
    shell "mycmd1.exe"
    shell "mycmd2.exe"

    dos window closes itself auto (nt).

    hi,brt

    <center>
    <HR width=80%>
    <img src='http://web.tiscali.it/bertaplanet/im...ertaplanet.gif'>
    </center>

  3. #3
    Join Date
    Aug 2001
    Location
    India
    Posts
    173

    Re: Open Dos Window

    I have to open dos window.
    1. Give "cd\"
    2. Type "type report.txt > prn"

    Thank You.
    Shivakumar G.M.



  4. #4

    Re: Open Dos Window

    can U use cmd "type ..\report.txt > ..\prn" ?

    hi,brt

    <center>
    <HR width=80%>
    <img src='http://web.tiscali.it/bertaplanet/im...ertaplanet.gif'>
    </center>

  5. #5
    Join Date
    Aug 2001
    Location
    India
    Posts
    173

    Re: Open Dos Window

    Sir,

    cmd "type ..\report.txt > ..\prn"
    No, i can't use sir,

    Thank You,
    Shivakumar G.M.


  6. #6

    Re: Open Dos Window

    hem.. sorry...
    but U can use

    cmd "type \report.txt > \prn"

    hi,brt

    <center>
    <HR width=80%>
    <img src='http://web.tiscali.it/bertaplanet/im...ertaplanet.gif'>
    </center>

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