CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2000
    Location
    Canada
    Posts
    59

    Dos Applications

    I have .exe that will be ran in DOS mode. I know how to get the commandline that was used to run it how do I output text to the DOS shell. Something like cout for C++ except for VB.
    Thanks for the help.
    Raistlin


  2. #2
    Join Date
    May 2000
    Location
    New York, NY, USA
    Posts
    2,878

    Re: Dos Applications


    Dim wshShell
    Set wshShell = CreateObject("WScript.Shell")
    wshShell.run "Command /K dir c:\*.*", 1, True

    That will DOS Dir command

    Iouri Boutchkine
    [email protected]
    Iouri Boutchkine
    [email protected]

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