Command-line switches
 
In addition to the Startup options, there are several switches you can employ when running TreePad from the command line. These are also termed command-line parameters and very often consist of the forward slash symbol (⁄) followed by the text of the switch. Switches must be separated from the TreePad application name and from each other by at least one space.
 
The general format of a switch is:
 
[TreePad application]  [TreePad file]  [switch 1]  [switch 2] ... [switch n]
 
e.g.,
 
C:\TreePadPLUS\TreePadPLUS.exe   C:\Work\Mywork.tpd   ⁄noregistry
 
where
C:\TreePadPLUS\   is the directory where TreePad PLUS was installed;
TreePadPLUS.exe   is the name of the application;
C:\Work\   is the directory where Mywork.tpd is the file to be opened; and
⁄noregistry is the No Registry switch.
 
Putting it all together, this command could be used in a shortcut to direct TreePad PLUS to open the work file Mywork.tpd using the ⁄noregistry switch.
 
 
Specifying a startup file
 
To create a shortcut (in Windows), which makes TreePad start while loading a data file, first type the path + name of the program, then the path and name of the file which you want TreePad to open:
 
Example:
 
"C:\program files\treepadplus\TreepadPlus.exe" "C:\data\mynotes"
 
 
Specifying a startup node
 
If you want to specify a startup node also, you need to include the ID of the node after the filename:
 
Example:
 
"C:\program files\treepadplus\TreepadPlus.exe" "C:\data\mynotes" 1120
 
This will start TreePad PLUS, opens the file mynotes and goes to the node with ID 1120.
 
You can find the ID of a node in TreePad itself: right-click on the node, then click 'Node Properties', and select the page 'Stamp'.
 
 
Further command-line switches include:
 
⁄na (not associate with files)
Adding this switch will prevent that version of TreePad from making itself the the default TreePad-file program on your system, i.e., it will prevent associating the .tpd, .hjt and .htmhjt file extensions with the program (the default). E.g.: 
 
TreePadViewer.exe ⁄na
 
This would be handy when you normally open TreePad files with TreePad PLUS, but occasionally want to view them using TreePad Viewer, without transferring the file association to the latter.
 
⁄noregistry (no registry)
Occasionally you may want to open TreePad without interfering with any existing settings. Adding this switch enables you to do this, e.g.:
 
C:\TreePadPLUS\treepadplus.exe ⁄noregistry
 
This disables ALL writing⁄reading to⁄from the Windows registry. It will be as if you have just installed TreePad for the first time. Furthermore, none of the settings and preferences configured while using TreePad with this switch will be remembered the next time that the program is opened. However, you will still be able to display all stored templates and even open a specified file at a specified node, as follows:
 
C:\TreePadPLUS\treepadplus.exe C:\myfiles\start.tpd 428 ⁄noregistry
 
If you create a shortcut containing this switch, TreePad will display the initial popup message "Registry is disabled" on starting TreePad, which is cleared when you click OK.
 
You can see that, whereas the ⁄na switch only affects file associations, the effects of the ⁄noregistry switch are much more widespread.
 
 
 

 
Notes:
  1. Although switches (e.g., ⁄noregistry) must always commence with a forward slash, the target TreePad file (e.g., Mywork.tpd) is not regarded as a switch so does not require prefixing with a forward slash. For more information see Specifying the startup file and node.
  2. If either filepath (to TreePad PLUS or its target file) contains one or more spaces, the filepath must be enclosed in double quotes. E.g., "C:\TreePad PLUS\TreePadPLUS.exe".
Search ]     [ Previous  |  Next ]     [ Up  |  First  |  Last ]     (Article 403 of 563)

This page is created with TreePad