Results 1 to 4 of 4

Thread: Command line output

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 1999
    Location
    Montréal
    Posts
    2

    Post

    In a command line only VB app, (no Form in the project) I want to print output message to user.
    Seems basic but Print or Put function always requiere a file no. Maybe there is a way in VB to get a file handle for default output ?

    thank in advance
    Joyeux Noel !!!

  2. #2
    Guru Aaron Young's Avatar
    Join Date
    Jun 1999
    Location
    Red Wing, MN, USA
    Posts
    2,176

    Post

    If you mean you want to print directly to the Screen, you're out of luck.

    However, you could use FreeFile to get the next available File Handle and use that to Open a Log File to which you could Print, then Shell Notepad to display it.

    Alternatively you can use the Msgbox to display Information to the user.

    If none of that works for you, you'll just have to cave and add a Form to your project.

    ------------------
    Aaron Young
    Analyst Programmer
    aarony@redwingsoftware.com
    adyoung@win.bright.net

  3. #3
    Member
    Join Date
    Nov 1999
    Location
    Princeton, New Jersey
    Posts
    46

    Post

    Dont know if this will help you, but this article on here was interesting. It details creating a console based App in VB that takes input and prints output using API... http://www.vb-world.net/api/console/

  4. #4
    Fanatic Member
    Join Date
    Jun 1999
    Location
    California, USA
    Posts
    662

    Post

    And you can use those functions to write a full cgi app if you don't define a console window. Just tell your server that exe files are to be executed and the output of your program goes right to the browser.

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