HFS: Parametri da riga di comando: Difference between revisions

From rejetto wiki
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 3: Line 3:


; -a <FILENAME>
; -a <FILENAME>
: Load an additional ini file, which will eventually overwrite settings in the main ini file.
: Carica un file .ini supplementare che, eventualmente, potrà sovrascrivere le impostazioni del file .ini principale.  
: This file doesn't have to be a full ini, it can also be a single line.
: Questo file non deve essere un grande .ini, potendo anche essere composto da una sola linea.
: By using this feature you can change almost anything in HFS configuration at startup, because almost everything is saved in the ini file.
: Usando questa caratteristica puoi cambiare qualsiasi parametro nella configurazione di avvio di HFS, in quanto pressocché tutto è salvato nel file .ini.  
: Notice that you may not have a main ini file in the HFS folder. This is because the settings are saved in the registry; it's exactly the same mechanism.
: Nota che è possibile che tu non abbia alcun file .ini principale nella cartella di HFS. Questo è dovuto al fatto che i parametri sono salvati nel registro di Windows; questo è esattamente lo stesso meccanismo.  
: If the ''only one instance'' option is enabled, you can use -a to change run-time options.
: Se è abilitata l'opzione "Solo un'istanza" (Menu >>> "Only one instance") puoi utilizzare il parametro -a, per cambiare le opzioni di run-time.  
: From version 2.1, there is an additional ini-command to be used combined with the -a parameter:
: Dalla versione 2.1, esiste un comando ini addizionale che può essere usato, in maniera combinata, con il parametro -a:
:*;load-tpl-from=FULLPATH:loads a template from the specified path.
:*;load-tpl-from=FULLPATH:loads a template from the specified path.
:Please notice this is an ini-command, not a command line parameter. The parameter we are discussing is always '''-a'''.
:Please notice this is an ini-command, not a command line parameter. The parameter we are discussing is always '''-a'''.

Revision as of 13:21, 19 January 2007

Di seguito viene riportatata una lista dei parametri da riga di comando, che possono essere utilizzati con HFS.
Questa è una caratteristica avanzata,per cui non ti preoccupare se non sai ancora cosa si intenta per riga di comando.

-a <FILENAME>
Carica un file .ini supplementare che, eventualmente, potrà sovrascrivere le impostazioni del file .ini principale.
Questo file non deve essere un grande .ini, potendo anche essere composto da una sola linea.
Usando questa caratteristica puoi cambiare qualsiasi parametro nella configurazione di avvio di HFS, in quanto pressocché tutto è salvato nel file .ini.
Nota che è possibile che tu non abbia alcun file .ini principale nella cartella di HFS. Questo è dovuto al fatto che i parametri sono salvati nel registro di Windows; questo è esattamente lo stesso meccanismo.
Se è abilitata l'opzione "Solo un'istanza" (Menu >>> "Only one instance") puoi utilizzare il parametro -a, per cambiare le opzioni di run-time.
Dalla versione 2.1, esiste un comando ini addizionale che può essere usato, in maniera combinata, con il parametro -a:
  • load-tpl-from=FULLPATH
    loads a template from the specified path.
Please notice this is an ini-command, not a command line parameter. The parameter we are discussing is always -a.
Here is an example of how to use the -a parameter. HFS is already running, the only one instance is enabled, and your goal is to switch the server off. All you have to do is to create a C:\foo.ini file with this content:
HFS 2.0 - Build #032
active=no
Then you will execute
hfs -a C:\foo.ini
It should work.
It is not necessary to match the exe version inside the ini. The version string is there to tell HFS how to interpret the commands, since some changes may go through different versions. Usually a newer HFS knows how to interpret old version ini commands.
-d <X>
Waits at start for <X> tenths of second.
-q
Just quit. This is useful combined with only one instance , because if HFS is already running, a call to hfs -q causes the running HFS to quit.
-i <PATH>
load/save hfs.ini in folder <PATH>