Write.File
Top  Previous  Next


Writes text from the NTinfo main or filter window to a file

One row is written for each row in the selected window.

Write.File FileName ; Window ; Output

FileName
Name of file to write to, include full path if not current directory  
 
Tip: the variables %date% and %time% can be used in the file name  

Window
Options: Main | Filter | Empty  
·Main - write contents of main window to file  
·Filter - write contents of filter window to file  
·Empty - leave the Window parameter empty to write a single text line to a file  

Output
What to write - text combined with variables  

When a range of columns is specified, they will be separated by the character specified in NTreport.Delimiter in [Settings].  

Examples
Write.File c:\myfile.txt; Main ; Column 1-7: %col1-7%

Write.File c:\myfile.txt; Main ; Column 1 to end: %col1-%

Write.File c:\myfile.txt; Main ; Column 1: %col1% Column 2: %col2%

Write.File c:\myfile.txt; Main ; %date% %time% %col4% %tab% %col6%

Write.File c:\myfile.txt;; Hello