8.5.25 ResetStandardFile or ResetStdFile (reset the standard input, output, or error file)
- Purpose
-
Disconnects the standard input, standard output, or standard error file for processes called by the Exec command.
In JP1/Script 07-50 or later, the command supports large files.
- Syntax
ResetStandardFile ([Type]) ResetStdFile ([Type])
- Argument
-
- Type
-
Specify the type of file to reset, using one of the following values:
Value
Meaning
StdInput
Standard input
StdOutput
Standard output
StdError
Standard error
This value is optional. If you omit this value, all the standard files are reset.
- Description
-
The ResetStandardFile or ResetStdFile command closes and disconnects the standard input, standard output, or standard error file set by the SetStandardFile command. The command returns True on successful execution, or False if an error occurs.
- Example
SetStandardFile (_SCF_+"BatOut1.TXT", StdOutput) SetStandardFile (_SCF_+"BatErr.TXT", StdError) Exec (_SCF_+"Backup.BAT", True) ResetStandardFile (StdOutput) SetStandardFile (_SCF_+"BatOut2.TXT", StdOutput) Exec (_SCF_+"Build.BAT", True)
- JP1/Script version
-
Supported from JP1/Script 05-10.