|
| |
.AppendTempFile
Description
- Append all output to the file specified in #TempFile
- Affects both STDOUT and STDERR
Syntax
|
%.AppendTempFile% |
|
Command/Program |
|
|
|
|
|
Command/Program |
|
%.AppendTempFile% |
This command will operate as a prefix or as a suffix. See the example below.
Parameters and Switches
|
Command/Program |
|
a command or program whose output
is to be redirected |
|
#TempFile |
|
the random name of a temporary
file |
Errorlevels and Output Variables
Examples, Notes and Instructions
- In most cases, placing %.AppendTempFile% before the Command/Program to be redirected is
recommended and provides better readability. However, the suffix syntax (i.e., placing the %.AppendTempFile% after the command to
be redirected) may be required for certain values of "Command/Program". If the prefix syntax causes errors, try using the alternate
syntax.
Example 1 - Appending the output of multiple commands simultaneously
NT
2K
XP
K3 |
%.AppendTempFile% (
(Command1)
(Command2)
(Command3)
) |
This syntax will append all output from each of the three commands to the file specified in #TempFile.
Related .Mount/\Commands, #Constants,
$Functions, :Procedures
|
Resource |
|
Short Description |
|
.GetTempFile |
|
Retrieves a random temporary file name; saves the value in #TempFile |
|
K
E
Y |
Common Commands |
INTERNAL |
External |
/SWITCH |
Parameter |
Help text |
AddonTool |
|
Mounted Commands |
.Mount/\Command |
CmdShorthand |
#Constant |
$FUNCTION |
:Procedure |
!GuardNote |
|
Operating Systems |
NT/2K/XP/K3 |
NT Only |
NT/2K |
2K Only |
2K/XP |
XP Only |
XP/K3 |
K3 Only |
2K/XP/K3 |
|