Run a script from the command line
Top  Previous  Next


1) Create the script

a) Enter the NTreport editor and open the file NTinfo_2.cnu from the previous tutorial create and run a basic script, define and use a speed button.  
 
b) In the [Settings] section, add the line:  

NTreport.Delimiter=%tab%

(All available settings are listed in the topic settings in the NTreport manual.)  
 
c) In the [Batch] section, after the "get.data" command, add the line:  

Write.File c:\myfile.txt; Main ; %date% %time%%tab%%col1-%

(All available commands are listed in the topic commands in the NTreport manual.)  
 
The script should now look like this:  
 
 
 
d) Press CTRL+S to save the script.  
 
e) Close AdmWin.  

2) Open the command prompt

Start / programs / accessories / command prompt.  

3) Go to the directory where AdmWin is installed


4) Run the script

At the command prompt type:  
 
admwin /ntreport ntinfo_3.cnu  

5) View the result

At the command prompt type:  
 
type c:\myfile.txt