PowerBasic Museum 2020-A

Legacy Software (PBWIN 9.0+/PBCC 5.0+) => Windows Script Runtime => Source Code => Scripting => FileSystemObject => Topic started by: José Roca on July 14, 2008, 02:14:23 AM

Title: IFileSystem3.GetStandardStream Method
Post by: José Roca on July 14, 2008, 02:14:23 AM


The following example illustrates the use of the GetStandardStream method.


#INCLUDE "windows.inc"
#INCLUDE "scrrun.inc"

DIM fso AS IFileSystem3
DIM pStm AS ITextStream

' Create an instance of the FileSystemObject
fso = NEWCOM "Scripting.FileSystemObject"
' Get the standard input stream
pStm = fso.GetStandardStream(%StreamType_StdIn, %FALSE)