PDA

Click to See Complete Forum and Search --> : Command line output


andreb
Dec 2nd, 1999, 09:56 PM
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 !!!

Aaron Young
Dec 3rd, 1999, 02:39 AM
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

laudy
Dec 3rd, 1999, 02:51 AM
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/

agent
Dec 3rd, 1999, 12:32 PM
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.