Command line syntax
Top  Previous  Next


Notice: the personal license version of NTreport can not be started from the command line.

admwin.exe /ntreport filename [/hide] [/r options]

/ntreport
Start NTreport  

filename
Full path to script file to execute  

/hide [Optional parameter]
hide the GUI window (debug=yes overrides this switch)  

/r options [Optional parameter]
Replace row in section  
 
Options format: Section, RowToReplaceContainsText, ReplaceEntireRowWith  
 
Section - settings, machines, batch or data  
 
RowToReplaceContainsText - text to search for  
If an empty string is specified in this parameter, or if the string is not found, "ReplaceEntireRowWith" is added at the end of the specified section.  
 
ReplaceEntireRowWith - text to replace entire row with on which match is found  


Feedback

NTreport sets the %errorlevel% environment variable if there is a problem opening a script file, other errors are not returned in the %errorlevel% variable. Error messages from the log window are written to the file "ntreport.log" created after each job.

Tip

Test the script in GUI mode before using command line mode.

Examples

1) Load the file "ext.cnu", replace the line in the [Batch] section where the text "Get.Data" is found with "Get.Data \\EDU14", run the script

admwin.exe /ntreport ext.cnu /r batch,Get.Data,Get.Data \\EDU14

2) Same as above but use the name of the local machine (where NTreport is executed)

admwin.exe /ntreport ext.cnu /r batch,Get.Data,Get.Data %computername%

Notice: "%computername%" can only be used from the command line.