|
-
Jun 13th, 2000, 06:06 PM
#1
Thread Starter
New Member
Right, here goes: I want to write VB programs that behave like QBASIC did. I want to PRINT, and INPUT from the CMD line. I've got the console.bas code, and this is fine, BUT it launches a new console instance. I want to run the program from a CMD line, and have all I/O happen in THAT instance. I'm new to VB, so any help would be appreciated...
Oh no, not the comfy chair!
-
Jun 14th, 2000, 02:15 AM
#2
You want to run the program from the CMD lines? You mean like when you type Myprog.exe in the DOs prompt and it runs MyProg. Is that what you want to do?
Please clairify.
-
Jun 15th, 2000, 02:25 AM
#3
To run the the DOS prompt, just use the Shell command.
Code:
RetVal = Shell("C:\Command.com", 1)
-
Jun 18th, 2000, 03:07 PM
#4
Thread Starter
New Member
That just starts a new shell... How do I display output (and request input) on the SAME command line?
Oh no, not the comfy chair!
-
Jun 18th, 2000, 09:38 PM
#5
Hyperactive Member
-
Jun 25th, 2000, 03:25 PM
#6
Thread Starter
New Member
Pardon? I was using the AllocConsole function. This starts a new console window, but all I'm after is the ability to run a program from a CMD window, then display and input in THAT window....
Oh no, not the comfy chair!
-
Jun 25th, 2000, 04:17 PM
#7
Hyperactive Member
-
Jun 25th, 2000, 05:08 PM
#8
Hyperactive Member
Check out the Articles section, a while ago there was an article how to do a console app in VB.
-
Jun 25th, 2000, 08:09 PM
#9
Yes, but i don't think they explained what he is trying to do.
-
Jun 26th, 2000, 02:31 AM
#10
Monday Morning Lunatic
what you want is to open stdout as a file...not sure how in VB.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Jun 27th, 2000, 05:42 PM
#11
Thread Starter
New Member
Oh no, not the comfy chair!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|