How can you get STDIN input to a WSH script using cscript.exe?
Asked Answered
S

1

6

I'm trying to use WSH in place of DOS/Batch files.

Thanks for the input!

Striction answered 2/12, 2009 at 1:7 Comment(3)
STDIN/"Thanks for the input!"; pun intended? :DFondness
aww you caught me lol =]Striction
powershell replaces VBScriptGehenna
T
8

Use WScript.StdIn

var input=WScript.StdIn.ReadLine();
Tentmaker answered 3/12, 2009 at 14:37 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.