Notitie
Voor toegang tot deze pagina is autorisatie vereist. U kunt proberen u aan te melden of de directory te wijzigen.
Voor toegang tot deze pagina is autorisatie vereist. U kunt proberen de mappen te wijzigen.
Returns all characters from an input stream.
Syntax
object.ReadAll
Arguments
- object
StdIn text stream object.
Remarks
The ReadAll method returns a string. The StdIn, StdOut, and StdErr properties and methods work when running the script with the CScript.exe host executable file only. An error is returned when run with WScript.exe.
Legacy Code Example
The following code demonstrates the use of ReadAll.
Dim Input
Input = ""
Do While Not WScript.StdIn.AtEndOfStream
Input = Input & WScript.StdIn.ReadAll
Loop
WScript.Echo Input
var input = "";
while (!WScript.StdIn.AtEndOfStream)
{
input += WScript.StdIn.ReadAll();
}
WScript.Echo(input);