Append File
Verb:
AF
Description:
Adds the specified text as a new line at the end of specified device filename.
Support:
- XPe Usage
- Continue if Script Command Fails: No
- Arguments:
- Path and filename
- New text line
- Examples:
AF "c:\temp\example.txt" "new line text" (This will add the line "new line text" to the end of example.txt located at c:\temp\)
- Linux Usage
- Continue if Script Command Fails: No
- Arguments:
- Path and filename
- New text line
- Examples:
AF "/wfs/Append.txt" "new line text" (This will add the line "new line text" to the end of Append.txt located at /wfs)
General Rules:
This command will append a new line of text to the end of a text file. If the file does not already exist it will be created. This can be very useful in adding additional commands to batch and script files.
Note: The destination directory must exist for this command to work.