Hello all,
I know that I can use wscript.stdout.write(line) (or just wscript.echo) and wscript.stdin.read(line) for that.
The problem is that I need it to happen even when the script has its
standard input/output redirected (imagine a console-based "do you want to continue (YN)" interaction)
https://www.google.com/search?q=vbscript+OpenTextFile+CreateTextFile+console{snip}
Mr. Man-wai Chang,
https://www.google.com/search?q=vbscript+OpenTextFile+CreateTextFile+console{snip}
[quote=me]
I can't get those to work using OpenTextFile / CreateTextFile.
[/quote]
And yes, I did search for the solution before posting here. Alas, no dice.
Regards,
Rudy Wieser
On Sat, 12/13/2025 11:51 AM, R.Wieser wrote:
Mr. Man-wai Chang,
https://www.google.com/search?q=vbscript+OpenTextFile+CreateTextFile+console{snip}
[quote=me]
I can't get those to work using OpenTextFile / CreateTextFile.
[/quote]
And yes, I did search for the solution before posting here. Alas, no dice. >>
Regards,
Rudy Wieser
I asked CoPilot to write me something.
Prepare a vbscript CSCRIPT program which opens a window,
accepts text input from the terminal session, then displays
"You typed " followed by the text string, placing the text
string on CONOUT and within the opened window, then waits
for an additional carriage return to exit the program.
Hello all,
I know that I can use wscript.stdout.write(line) (or just wscript.echo) and wscript.stdin.read(line) for that.
The problem is that I need it to happen even when the script has its standard input/output redirected (imagine a console-based "do you want to continue (YN)" interaction)
Using Win32 I can just open "CONIN$" and "CONOUT$", but I can't get those to work using OpenTextFile / CreateTextFile.
Any ideas ?
Regards,
Rudy Wieser
I asked CoPilot to write me something.
What is the "GOTO 0" thing ? I don't see a magic label, so
this might be a hallucination of some sort.
Console input : "CON"/"CONIN$" with mode 1 (read)
Console output: "CON"/"CONOUT$" with mode 2 (write)
First of all, did you delete your previous message just now ? I was
reading it and suddenly it disappeared and my newsgroup reader told me
he couldn't download that message. Than I re-selected it and this one
appeared instead.
Those are usually just communication errors. Try again later.
I guess A.I. might need better prompts to get to real solutions.
I just searched for "wscript.stdout.write console" in regular Google, the 7th result:
JJ,
First of all, did you delete your previous message just now ? I was reading it and suddenly it disappeared and my newsgroup reader told me he couldn't download that message. Than I re-selected it and this one appeared instead.
First of all, did you delete your previous message just now ?
I was reading it and suddenly it disappeared and my newsgroup reader
told me he couldn't download that message. Than I re-selected it
and this one appeared instead.
Huh? That was my first reply in this thread. And this one is my second.
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 54 |
| Nodes: | 6 (1 / 5) |
| Uptime: | 20:58:26 |
| Calls: | 742 |
| Files: | 1,218 |
| D/L today: |
6 files (8,794K bytes) |
| Messages: | 185,811 |
| Posted today: | 1 |