Usage  smtree.(sh/bat) <options> <commands> <command options>
  
Options for SEPDB connection  

  -?,  --help                # this help.
  -h , --host <host>         # specifies the host name.
			       if missing will use localhost;
  -p , --port <port>         # specifies the port number.
	                       if missing will use 10288;
  -d , --dbname <database>   # specifies SEP database name for your 
                               connection.
			       database name is required;
  -u , --user <username>     # specifies the username for SEPDB connection.
			       if missing will use guest;
  -P , --passwd <password>   # specifies the password for SEPDB connection.
		               if missing will use guest;
  -s , --security <security> # specifies the security type for 
                               SEPDB connection.
			       The secutity type must be   jsse or ptls.
			       If missing the connection is opened without 
			       security;

Commands 
	 
  -create                    # create new subtree in the 'root directory'.
  Options for 'create' 
    <subtree>                # subtree name that will be created in SEPDB.
			       subtree name is required;
					 
  -remove                    # remove empty subtree.
  Options for 'remove' 
    <subtree>                # the name of the subtree that will be removed.
		               subtree name is required;
    [-f, --force]            # you can be remove a not empty subtrees;

  -list                      # list subtree contents from SEP database.
  Options for 'list' 
    <subtree>                # name of the subtree that contents will be 
                               listed.
			       subtree name is required;
    [-l, --long]             # if is specified use a long listing format;
    [-t, --tree]             # if is specified list tree entries instead 
                               contents;

  -copy                      # copy subtrees and documents without overwriting.
  Options for 'copy' 
    <source>                 # source subtree or document that will be copyed.
                               source name is required;
    <destination>            # is destination subtree where documents 
                               will be copyed.
			       destination subtree name is required;
    [-R, --recursive]        # if is specified copy subtrees recursively;
    [-v, --verbose]          # if is specified explain what is being done;
																								 
  -chtype                    # change store type for specified subtree.
  Options for 'chtype' 
    <storeType>              # is new subtrees store type, witch can be 
                                 - flexible, strict, free or free_tag;
    <subtree>                # this name is name of subtree, witch store 
                               types will be changed;
    [-R, --recursive]        # if is specified change store types recursively;
    [-v, --verbose]          # if is specified explain what is being done;

  -naming                    # sets value to generate automaticaly document ID
                               in specified subtree
  Options for 'naming'
    <naming>                 # with this flag you can set if in the specified 
                               subtree the document ID may be generated 
			       automatically or is specified by user
			       The flag can be: auto or manual    
    <subtree>                # this name is name of subtree, witch naming 
                               will be sets;
    [-R, --recursive]        # if is specified set naming recursively;
    [-v, --verbose]          # if is specified explain what is being done;
     
Examples 
  The following examples for SEP database connection, using 'localhost' , 
port '10288', username 'root' and the <root_password>.

  smtree.sh -create -u root -P rootPWD -d XMLDB home/crow 
    # create 'home/crow' subtrees in the 'root directory'.
    
  smtree.sh -remove -u root -P rootPWD -d XMLDB crow
    # remove 'crow' subtree from root directory if subtree is empty.
    
  smtree.bat -list -u root -P rootPWD -d XMLDB home/crow
    # list subtrees and documents for subtree 'home/crow'.

  smtree.bat -copy -u root -P rootPWD -d XMLDB home/crow user/crow
    # copy documents from subtree 'home/crow' to subtree 'user/crow'.
      Source and destination subtrees may be exists.
  
  smtree.bat -chtype -u root -P rootPWD -d XMLDB flexible user/crow
    # change store type in 'flexible' mode for subtree 'user/crow'.

  smtree.bat -naming -u root -P rootPWD -d XMLDB auto user/crow
    # set naming to 'auto' mode for subtree 'user/crow'.    