vbscript CSCRIPT howto : writie to screen and read from keyboard ?
"R.Wieser" <[email protected]> Fri, 28 Nov 2025 19:05:57 +0100
| Newsgroups | alt.comp.lang.vbscript,alt.comp.os.windows-xp,alt.windows7.general |
|---|---|
| Organization | A noiseless patient Spider |
| Message-ID | <[email protected]> |
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