Hardware and software setup

Installing 1s 8.3 from the command line. Command line options to specify launch options

Parameters command line mode selection:

CONFIG
launching the 1C:Enterprise 8 system in the "Configurator" mode

ENTERPRISE
launching 1C:Enterprise 8 in 1C:Enterprise mode

CREATEINFOBASE
creating distribution and update files


string specifying parameters information base, each of which is a fragment of the form
,
where Parameter name is the name of the parameter, and Value is its value. Fragments are separated from each other by ";". If the value contains whitespace characters, it must be enclosed in double quotes (").

File mode options

File directory of the infobase;
Locale language (country) that will be used when creating the infobase. Valid values ​​are the same as the Format method parameter. The Locale parameter is optional. If not specified, the regional settings of the current infobase will be used.

Client-Server Options

Srvr server name 1C:Enterprise;
Ref is the name of the infobase on the server;
SQLSrvr name of the SQL server;
SQLDB name SQL databases data;
SQLUID SQL username;
SQLPwd SQL user password. If the password for the SQL user is not set, then this parameter can be omitted
SQLYOffs - date offset used to store dates in SQL Server. It can take the values ​​0 or 2000. This parameter is optional. If not set, the value is 0.
Locale - language (country), (similar to the file version).

For all options, the parameters are defined:

Usr Username;
pwd password

/AddInList parameter showing under which name to add the base to the list, if not specified, the base will not be added to the list. If no name is specified, the default is used, similar to the interactive creation of an infobase.
Simultaneous use of keys is not allowed.

Command line options to specify launch options:

/@
command line options are written in specified file

/F
path to the infobase, if it is stored in a file (no need to specify the file name)

/S
the address of the infobase stored on the 1C:Enterprise 8 server is added up as follows:

/N
Username. Must be specified in the same way as in the list of users created in the Configurator

/P
the password of the user whose name is specified in the /N option. If the user does not have a password, this parameter can be omitted

/WA-
prohibiting the use of Windows authentication at the start of the Enterprise or the Configurator

/WA+
setting the mandatory use of Windows authentication at the start of 1C:Enterprise or Configurator. If the /WA switch is not specified, it is assumed that the /WA+ command line option is used.

/AU-
prohibition of displaying a question about updating the current version of 1C: Enterprise from an administrative installation

/AU+
setting the output of the question about updating the current version of 1C:Enterprise from the administrative installation. If the /AU switch is not specified, it is assumed that the /AU+ command line option is used.

/Out
[-NoTruncate]
setting a file for displaying service messages. If the NoTruncate key is set (separated by a space), the file is not cleared

/L
the directory of localized interface resources is specified (for example, "RU")

/DisableStartupMessages
Suppresses startup messages: “Database configuration does not match saved configuration. Continue?"; “The capabilities of your computer are not enough to edit the configuration help. To edit help, you need to install Microsoft Internet Explorer version 6.0 or higher."; “The capabilities of your computer are not enough to edit html documents, including help sections. To edit html documents, you need to install Microsoft Internet Explorer version 6.0 or higher. V this launch editing html documents will be unavailable.

/C
passing parameter to configuration

Batch mode

Using command line options, the administrator can run the configurator in batch mode to perform the following actions:

  • updating the database configuration, including the one under support;
  • performance of syntactic control;
  • testing and correcting the infobase with setting all parameters;
  • reduction of the registration log;
  • performing a configuration check.
  • Using command line options, the administrator can specify:

    • launching the 1C:Enterprise 8 system in the Configurator mode;
    • infobase parameters: user, password; for the file version - directory, language; for the client-server version - server name, infobase name, SQL server name, SQL database name, SQL username and password, date offset.

    In addition, all launch parameters can be configured in external file, whose name is specified in the command line parameters.

    After performing the actions specified in the launch parameters, the 1C:Enterprise configurator closes.

    Using the batch launch mode of the configurator allows you to automate the process of infobase maintenance by running the appropriate batch files according to a schedule.

    Configurator batch mode command line parameters:

    /DumpIB
    uploading the infobase to command mode

    /DumpCfg
    saving the configuration to a file

    /UpdateDBCfg
    [-WarningsAsErrors]
    updating the database configuration. If the Warnings-AsErrors key is specified (separated by a space), then all warning messages will be treated as errors

    /DumpDBCfg
    saving the database configuration to a file

    /RollbackCfg
    back to database configuration

    /CheckModules
    perform syntax check

    /UpdateCfg
    updating a supported configuration

    /IBCheckAndRepair [-ReIndex]
    [-LogIntergrity] [-RecalcTotals]
    [-IBCompression]
    [-TestOnly | [-BadRefCreate |
    -BadRefClear | -BadRefNone]
    [-BadDataCreate |
    -BadDataDelete] ]
    perform testing and correction of the infobase

    ReIndex
    table reindexing

    LogIntergrity
    logical integrity check

    RecalcTotals
    recalculation

    IBCompression
    table compression

    TestOnly
    only testing if there are references to non-existent objects:

    BadRefCreate
    create objects

    BadRefClear
    clear objects

    BadRefNone
    do not change

    With partial loss of objects:

    BadDataCreate
    create objects

    BadDataDelete
    delete objects

    Simultaneous use of keys within a parameter subgroup is not allowed. If the command was successful, returns a return code of 0, in otherwise 1 (101 if there are errors in the data).

    Command line options for creating distribution and update files in batch mode:

    /CreateDistributionFiles
    [-cffile]
    [-cfufile
    [-f |-v ]+]
    Creating Delivery and Update Files

    cffile
    an instruction to create a distribution

    cfufile
    an instruction to create an update

    F
    the distribution included in the update is specified by the name

    V]
    the distribution included in the update is specified by the version

    Note: The -f |-v group of options is repeated as many times as the number of distribution files included in the update.

    Command line parameters for working with the configuration repository:

    /DepotF
    storage directory

    /DepotN
    vault username

    /DepotP
    vault user password

    V
    v - version number, if the version number is not specified, or equal to -1, it will be saved latest version.

    /DepotUpdateCfg [-v ] [-revised]
    Update storage configuration from file (batch mode)

    V
    version number, if the version number is not specified, or equal to -1, the latest version will be saved, if the configuration is connected to the repository, then the parameter is ignored

    Revised
    receive captured objects if required. If the configuration is not connected to the repository, then the parameter is ignored.

    Command line parameters for batch registration of 1C:Enterprise 8 as an Automation server:

    /RegServer
    application registration

    /UnregServer
    deleting application registration

    After execution, it closes the 1C: Enterprise 8 system.
    If parameter values ​​include spaces (for example, a path or file name), the values ​​must be enclosed in quotation marks.

    Examples

    How to run 1C:Enterprise 8 from the command line

    C:\Program Files\1cv8\bin\1cv8.exe" ENTERPRISE /F D:\Configurations\Typical\ControlTorg /N Username /P Password

    C:\Program Files\1cv8\bin\1cv8.exe" ENTERPRISE /S Server\Base /N Username /P Password

    C:\Program Files\1cv8\bin\1cv8.exe" CONFIG /F D:\Configurations\Typical\ControlTorg /N Username /P Password

    How to force 1C:Enterprise to unload the database from the command line

    C:\Program Files\1cv8\bin\1cv8.exe" CONFIG /F D:\Trading Admin /N Username /P Password /DumpIB c:\name.dt

    How to update the current configuration changes in the database configuration from the command line

    C:\Program Files\1cv8\bin\1cv8.exe" CONFIG /F D:\Trading Admin /N Username /P Password /UpdateDBCfg

    How to test and fix an infobase without checking referential integrity in automatic mode

    C:\Program Files\1cv8\bin\1cv8.exe" CONFIG /F"C:\DemoTrd2" /N"Fedorov (Administrator)" /P"" /IBcheckAndRepair -LogIntegrity

    How to perform a configuration check in automatic mode with the output of the check results to a file

    C:\Program Files\1cv8\bin\1cv8.exe" CONFIG /F"C:\DemoTrd2" /N"Fedorov (Administrator)" /P"" /OutD:\my\log.txt /CheckConfig -ClientServer -Client -ExternalConnectionServer -ExternalConnection -Server -DistributiveModules -IncorrectReferences -ConfigLogicalIntegrity -UnreferenceProcedures -HandlersExistence -EmptyHandlers

    How to shrink the log programmatically

    C:\Program Files\1cv8\bin\1cv8.exe" CONFIG /F"C:\DemoTrd2" /N"Fedorov (Administrator)" /P"" /OutD:\my\log.txt /ReduceEventLogSize 2004-12- 26 -saveAsC:\OldLog.elf

    How to unload application solution modules as text files from the command line

    C:\Program Files\1cv8\bin\1cv8.exe" CONFIG /F"C:\DemoTrd2" /N"Fedorov (Administrator)" /P"" /DumpConfigFiles "D:\1\11" -Module

    How to load help files saved in .htm format into the application solution

    C:\Program Files\1cv8\bin\1cv8.exe" CONFIG /F"C:\DemoTrd2" /N"Fedorov (Administrator)" /P"" /LoadConfigFiles "D:\1\11" -Help

    If you need to create backup copies of 1C and client-server and file IS, it is most convenient to use the command Windows line. Using the technology described below, you will have all the databases in the native 1C .dt format, which will allow you to:

    • change the file version to client-server and vice versa;
    • transfer databases to other servers or computers;
    • unify the format backups 1C.

    All activities require a computer Windows control 2003+ with installed thick client from technology platform delivery. We will upload to network drive, located on a NAS device that acts as a 1C backup storage, and not only.

    Launching the 1C configurator from the command line

    For convenience, let's create a .cmd file, which is a set of lines that launch the 1C configurator from the command line. An example file can be downloaded. This file can be used in the future in the regular Windows Scheduler located in the Control Panel to automate the process Reserve copy.

    The basis of the solution can be the following 1C command line, which backs up the client-server database:

    "C:\Program Files (x86)\1cv8\common\1cestart.exe" CONFIG /S"Server\buh" /N"Administrator" /P"MyPassword" /Out"C:\1c.log" /DumpIB"\ \backup\1c\buh_%date%.dt"

    Here, in order not to depend on the version, we run 1cestart.exe with the following parameters:
    CONFIG - launching the 1C configurator from the command line
    /S - specify the client-server IB buh, hosted in the Server cluster
    /N "Administrator" - username as it is specified in the list of users.
    /P"MyPassword" - password for the previously specified user. If there is no password, then this parameter does not need to be specified to start 1C from the command line.
    /Out"C:\1c.log" - the name of the file that will contain service information about the progress of the script, as well as errors and diagnostic messages.
    /DumpIB”\\backup\1c\buh_%date%.dt” - and finally, the key that unloads the database to the \\backup network drive to the 1c folder with the name buh_XX.XX.XXXX.dt, where XX.XX.XXXX - current date to prevent overwriting backup files and identify them.

    Please note that when writing Russian characters in the .cmd file that performs 1C backup from the command line, you must use the CP866 encoding, and not the standard Windows CP1251! You should also pay attention to the double quotes around the parameter values ​​and the absence of spaces between the parameters and their values.

    For file IBs, instead of the /S key, the /F parameter should be specified, otherwise the syntax for launching 1C from the command line will be identical, for example:

    "C:\Program Files (x86)\1cv8\common\1cestart.exe" CONFIG /F"D:\1C_Bases\buh" /N"Admin" /P"MyPassword" /Out"C:\1c.log" / DumpIB"\\backup\1c\buh_%date%.dt"

    For a more detailed description of all 1C launch options, refer to the current developer documentation. Our experts are also ready to develop a backup system for your needs on a commercial basis. The cost of implementation is only 5000 rubles.

    This article will talk about the server agent 1C: Enterprise 8.3 (valid for version 8.2 ) in case of using the agent in operating systems Windows family. The agent launch parameters will be given, as well as a description of the actions performed when it starts.

    1. 1C:Enterprise server agent startup file

    In order to launch a 1C:Enterprise server cluster, you need to run the server agent, or rather the program agent.exe, which is located in the directory bin 1C:Enterprise installation directory. The default is:

    • C:\Program Files (x86)\1cv8\<Version Number>\bin — for the 32-bit version of the 1C:Enterprise server version 8.3
    • C:\Program Files\1cv8\<Version Number>\bin — for the 64-bit version of the 1C:Enterprise server version 8.3
    • C:\Program Files (x86)\1cv82\<Version Number>\bin — for the 32-bit version of the 1C:Enterprise server version 8.2
    • C:\Program Files\1cv82\<Version Number>\bin — for the 64-bit version of the 1C:Enterprise server version 8.2

    2. Launch parameters of the 1C:Enterprise server agent

    When starting the server agent agent.exe it is possible to use the following options:

    Launch parameters of the 1C:Enterprise server agent
    Parameter Description
    -port<порт> The network port number of the server agent (ragent). This port is used by the cluster console to contact the central server. The cluster agent port is also specified as the working server network port. The default value is: 1540 .
    -regport<порт> Network port number of the master cluster manager (rmngr) created by default when ragent is first started. Default value: 1541 .
    -range<диапазоны> Network port ranges for dynamic selection. Service ports of cluster processes are selected from them if it is impossible to select them from the settings of the corresponding working server. Default value: 1560:1591 .
    -debug Starting a server cluster in configuration debug mode.
    -d<каталог> The directory where the service files of the server cluster will be located (or are located) (including the list of clusters and the list of cluster infobases). If the directory path contains spaces, the path must be enclosed in quotation marks, but in this case, the directory name must not end with a "\" character. The default value is: %LOCALAPPDATA%\1C\1Cv8(%USERPROFILE%\Local Settings\Application Data\1C\1Cv8 for Windows XP and Windows Server 2003).
    -seclev<уровень> The security level of the cluster agent process. Specifies the security level of connections established with the ragent process. Level can take values:
    • 0 – connections are not secure;
    • 1 – secure connections only for the duration of user authentication;
    • 2 - always secure connections.

    Default value: 0.

    -instsrvc Registering the cluster agent as a Windows service. If ragent is started with this switch, it registers itself in the list of Windows services and exits. The -instsrvc switch is incompatible with the -rmsrvc switch.
    -rmsrvc Unregister the cluster agent as a Windows service. If ragent is started with this switch, it unregisters itself from the list of Windows services and exits. The -rmsrvc switch is incompatible with the -instsrvc switch.
    -usr<имя>
    -pwd<пароль>
    Name and password Windows user, which should run ragent as a Windows service. Can only be used in conjunction with the -instsrvc switch when registering ragent as a Windows service.
    -srvc Run the ragent process as a Windows service and transfer control to the service manager.
    -start Start ragent registered as a windows service. Starts ragent, previously registered as a Windows service, and then exits.
    -stop Stop ragent registered and running as a windows service. Stops ragent, previously registered and running as a Windows service, and then exits.
    -agent Use as 1C:Enterprise Server Agent

    The parameter name and value must be separated by a space character.

    3. Launching the 1C:Enterprise server agent

    On startup, the Server Agent searches for a list of registered this computer servers using the parameters passed to it at startup. If the list of clusters is found, the agent receives from them information about the worker processes that should be launched in each of the clusters and starts them.

    If the list of clusters is not found, the agent creates a default cluster. The default cluster has the following characteristics:

    • Network port number - 1541;
    • Network port range - 1560:1591;
    • Support for many workflows is disabled;
    • One worker process, the port number is set from the specified range.

    The Server Agent can be run as either a service or an application.

    4. Launching the 1C:Enterprise server agent as an application

    To run the server agent as an application, run the command agent.exe

    Ragent.exe -debug -port<порт>-regport<порт>-range<диапазоны>-seclev<уровень>-d<каталог>

    Stopping the server agent running as an application is done by pressing the Ctrl + C keys.

    5. Launching the 1C:Enterprise server agent as a service

    If you chose to run the agent as a service during installation, then this service will be registered and launched automatically, and will also be launched at the start of the operating system.

    If the Server Agent was installed as an application (and also if the service was uninstalled), it is possible to manually register the service and then start it. To register a service, run the command agent.exe with the following possible options (if any option is not specified, the default value will be used):

    Ragent.exe -instsrvc -usr<имя>-pwd<пароль>-debug -port<порт>-regport<порт>-range<диапазоны>-seclev<уровень>-d<каталог>

    When registered, the server agent creates a service named:

    • 1C:Enterprise 8.3 Server Agent - for the 32-bit version of the 1C:Enterprise server version 8.3
    • 1C:Enterprise 8.3 Server Agent (x86-64) - for the 64-bit version of the 1C:Enterprise server version 8.3
    • 1C:Enterprise 8.2 Server Agent - for the 32-bit version of the 1C:Enterprise server version 8.2
    • 1C:Enterprise 8.2 Server Agent (x86-64) - for the 64-bit version of the 1C:Enterprise server version 8.2

    To unregister a service (remove a service), run the following command:

    Ragent.exe -rmsrvc

    To start the service, run the command:

    Ragent.exe -start

    To stop the service, the command is:

    Ragent.exe -stop

    Did this article help you?

    In this article I will tell you about 1C launch options and how to apply them. Here are some examples of how to use these options. After reading the article, you will be able to automate some daily processes.

    When starting 1C:Enterprise, you can use the launch options that can be specified in the settings or in the shortcut that you use to launch 1C.

    Launch mode 1C

    CONFIG- 1C will start in the Configurator mode.
    ENTERPRISE- 1C will start in Enterprise mode.

    1cestart.exe- a file for launching the 1C program, usually located in the "1cv8 \ common" folder. Automatically detects on startup desired version client. When installing 1C, shortcuts on the desktop and in the Start menu refer to this particular file.

    1C launch options for automatic user selection

    • /N"Username"
    • /P"User Password"

    The username and password must match the username and password specified in the user list in the Configurator. Users can be viewed in the Configurator, go to the top menu: Administration > Users. If the password is empty, then this field can be omitted.

    These parameters can be specified in the settings when editing a database in the list of databases. In the "Advanced launch options" field.

    Run 1C and go to the infobase settings, the following window should appear:

    Write down the parameters as shown in the figure, specifying your username and password, then click "Finish". If everything is done correctly, then when you enter this database, you will not be asked for a username and password.

    1C launch options for automatic launch of the database

    • /F "address" - address to the database, if it is stored in the file version.

    If your database is stored on the server, you need to set the launch parameters differently:

    • /S "address" - specify the address as follows: "Name of the server (of the infobase cluster)" \ "Name of the infobase on the server"

    These parameters must be written in the shortcut with which you launch 1C:Enterprise. Go to the properties of the shortcut, at the end of the "Object" field, add the parameters you need.

    If everything is done correctly, when you start the shortcut, the database that you specified in the parameters should start.

    For convenience, you can create a new shortcut, or copy the one you use.

    Autoload 1C at system startup

    If you want to start 1C Enterprise at system startup with the necessary parameters, you need to copy the 1C shortcut to the Startup folder.

    If it contains 1C startup parameters, they will work when the system starts.

    You can combine any launch parameters 1C. To do this, simply write down the necessary parameters in the 1C settings or in the shortcut.

    Additional launch options 1C

    • /LogUI- recording user actions in the log. (Writing will be done in the user's directory, in a file called "logi.txt")
    • /DumpIB " Upload file address « - unloading the database. Suitable for creating automatic database archiving.
    • /execute " Address of external processing” - the parameter is intended for automatic start of external processing after system startup.
    • /C"String parameter" - passes the parameter to the configuration. You can access it through the global context in the Startup Parameter configurator.
    • /DisableStartupMessages- the parameter removes system messages when starting 1C Enterprise.

    When editing an infobase. You can specify the version of 1C through which to launch (suitable if you have several databases installed running under different versions client)

    An example of using parameters for automatic infobase archiving.

    "C:\Program Files (x86)\1cv8\common\1cestart.exe" CONFIG /F"C:\Base_Buh" /N"user" /P"111" /DisableStartupMessages /DumpIB C:\Arhiv\Buh.dt / Out" C:\Arhiv\log_arhiv.txt" -NoTruncate

    If you register these parameters in the shortcut for launching 1C in the "Object" field, an archive of the base will be made, which is located "C:\Base_Buh" in the "C:\Arhiv" folder under the name "Buh.dt". It will also write to the log file "C:\Arhiv\log_arhiv.txt". Specify your paths, where the database is located, and where you want to create archives.

    Setting Application Debugging Launch Options

    When developing applications, it is often necessary to run the 1C debugger under a specific user, for this you need to go to the configurator: Help > Options

    On the "Launch 1C:Enterprise" tab in the "User" group, the current user is set by default (under which you entered the configurator). You can change it to whatever you need. And debugging will start under the selected user.

    Also, here you can specify under which client to run the application.

    Here are some easy steps you can take useful features in the 1C:Enterprise program.

    For 7.7:
    CONFIG - configurator
    DEBUG - debugger
    ENTERPRISE - enterprise
    /D<Путь>- information database directory
    /U<Путь>- user directory
    /N<Имя>- username as it appears in the list of users
    in the configurator
    /P<Пароль>- password of the user whose name is specified in the /N parameter
    /M - exclusive mode
    /T<Путь>- option to override temporary files directory
    If the path looks like c:\Program Files\folder, then to run
    the whole path must be taken in "" - /D"C:\Program Files\base1c"

    A) for the command line (bat-file):
    С:Program Files/1Cv77/BIN/1CV7.exe /DC:/Base1C
    b) for label (quotes appear):
    “С:Program Files/1Cv77/BIN/1CV7.exe” /DC:/Base1C

    For 8.x:
    CONFIG launching the 1C:Enterprise system in the "Configurator" mode;
    ENTERPRISE launch of the 1C:Enterprise system in the "1C:Enterprise" mode;
    CREATEINFOBASE ] creating an infobase

    a string specifying the infobase parameters, each of which is a fragment of the view
    <Имя параметра=><Значение>,
    where Parameter Name is the name of the parameter and Value is its value.
    Fragments are separated from each other by ";".
    If the value contains whitespace characters, it must be enclosed in double quotes (").

    Examples of using parameters:

    Opening 1C: Enterprise for the file version:
    "C:\Program Files\1cv81\bin\1cv8.exe" ENTERPRISE /F"D:\1C_base\ZUPRAZR" /N"Admin" /P"12345"

    Opening 1C: Enterprise for client-server version:
    "C:\Program Files\1cv81\bin\1cv8.exe" ENTERPRISE /S"server-1C\ZUP" /N"Admin" /P"12345"
    If there are 8.1 and 8.2 on the same server, then when connecting to 8.2 databases, you need to specify the server port (for example, 1641):
    "C:\Program Files\1cv82\common\1cestart.exe" ENTERPRISE /S"server-1C:1641\ZUP" /N"Admin" /P"12345"

    Run the program as a user and perform processing on opening:
    "C:\Program Files\1cv82\8.2.11.235\bin\1cv8s.exe" ENTERPRISE /F "D:\1C\HRM" /N user /P password /Execute "D:\1C\External_processing_1C\RunningProcessing\Desktop. epf"

    To remove the blocking of establishing connections with the infobase
    in cmd: start C:\Progra~1\1cv81\bin\1cv8.exe /UC "access code"
    in the shortcut: "C:\Program Files\1cv81\bin\1cv8.exe" ENTERPRISE /F"D:\1C\HRM" /N"Ivanov I.I." /P"Password" /UC 456743

    Run 1C under you on the user's machine if Windows authentication is installed
    C:\Program Files\1cv81\bin\1cv8.exe" /WA-
    In this case, 1C will require you to enter a password at the entrance.

    Creating a Configuration Template File
    DESIGNER /F"D:\V8\Cfgs81\IB81" /CreateTemplateListFile "templates.lst" -TemplatesSourcePath "D:\V8\Cfgs81\tmpIts"

    Storage examples:
    for a configuration not attached to the current repository
    DESIGNER /F"D:\V8\Cfgs82\IB82" /ConfigurationRepositoryF "D:\V8\Cfgs82" /ConfigurationRepositoryN "Administrator" /ConfigurationRepositoryReport "D:\ByObject.mxl" -NBegin 1 -NEnd 2 –GroupByObject
    for a configuration attached to a storage, information for reports is taken from the current storage
    DESIGNER /F"D:\V8\Cfgs82\IB82" /ConfigurationRepositoryReport "D:\ByComment.mxl" -NBegin 1 -NEnd 2 -GroupByComment

    Create a database and add it to the user's list of databases:
    It will create a database with configurations from the file 1Cv8.cf in the created folder "test3" on disk E and add the path to the database to the list of databases under the name "TEST33".
    "C:\Program Files\1cv82\common\1cestart.exe" CREATEINFOBASE File=e:\test3; /AddInListTEST33 /UseTemplate "C:\Documents and Settings\User\My Documents\tmplts\TestVendor\TestConfig\1Cv8.cf"

    From 8.2.12 the installer performs the registration of the COM connection "to the computer". It is possible to perform registration "for the user" using the command line
    regsvr32 /n /i:user comcntr.dll


    We create a user for a specific action, set the appropriate values ​​​​in the user settings rights, for example, check the box “Autoload exchange rates at the start of the program” for Accounting or “Download current exchange rates at system startup” for SCP.
    "C:\Program Files\1cv81\bin\1cv8.exe" enterprise /SServer-1C\1C-Work /NAdmin /P12345 /Out"C:\Logi1C\log.txt" -NoT_runcate /DisableStartupMessages
    In general, this idea came to mind when I spied in a non-standard conf that the User can also be set to execute a global procedure when he logs in. In the standard ones, you can use the /Execute parameter, creating a processing, for example, that starts the completion of documents and after the system shuts down:
    // unconditional termination of the program
    ShutdownSystem(False);
    Automatic saving of databases by means of 1C:
    1) create a .bat file with the line
    "C:\Program Files\1cv82\common\1cestart.exe" DESIGNER /S Server-1C\1C-Work82 /N"Administrator" /P"12345" /DumpIB \\bdc\BackUp\Base_%date-10%. dt
    2) we create a regulated task on the server with admin rights with the execution of this file at a certain time.
    Knowing the date output format, you can look through echo % date%, you can select separate parts of the date to form a more convenient representation of the file using symbols, for example:
    %date3% - output from the third digit
    %date3,2% - output 2 characters starting from the third

    Sample file for updating the configuration
    echo off
    cls
    "C:\Program Files\1cv81\bin\1cv8.exe" ENTERPRISE /S"server\ESKM" /N"Admin" /P"ESKM" /DisableStartupMessages /C"ShutdownUsers"
    "C:\Program Files\1cv81\bin\1cv8.exe" CONFIG /S"server\ESKM" /N"Admin" /P"ESKM" /DisableStartupMessages /UpdateDBCfg /UC"BatchUpdateIB Configuration"
    "C:\Program Files\1cv81\bin\1cv8.exe" ENTERPRISE /S"server\ESKM" /N"Admin" /P"ESKM" /C"AllowUsers" /UC"BatchUpdateIB Configuration"

    To remove the blocking of establishing connections with the infobase, you need to:
    Log in to the infobase using the "/UC" startup parameter with the same access permission code that was specified when setting the lock.

    Run this processing, specifying "Unblock connections" as the blocking action.

    Press the "Execute" button.

    in cmd
    start C:\Progra~1\1cv81\bin\1cv8.exe /UC<код доступа>

    In the label
    "C:\Program Files\1cv81\bin\1cv8.exe" ENTERPRISE /F D:\Configurations\Typical\ControlTorg /N Username /P Password /UC 456743

    More about options
    The following parameter is defined for the file variant:
    File - infobase directory;

    Locale - language (country) that will be used when creating the infobase. Valid values ​​are the same as the parameter<Форматная строка>method Format. The Locale parameter is optional. If not specified, the regional settings of the current infobase will be used.

    For the client-server version, the following parameters are defined:
    Srvr - 1C:Enterprise server name;

    Ref - name of the infobase on the server;

    SQLSrvr - SQL server name;

    SQLDB - SQL database name;

    SQLUID - SQL username;

    SQLPwd - SQL user password. If the password for the SQL user is not set, then this parameter can be omitted

    SQLYOffs is the date offset used to store dates in SQL Server. It can take the values ​​0 or 2000. This parameter is optional. If not set, the value is 0.

    Locale - language (country), (similar to the file version).

    For all options, the parameters are defined:

    usr - username;

    pwd - password

    /AddInList
    parameter showing under which name to add the base to the list, if not specified, the base will not be added to the list. If no name is specified, the default is used, similar to the interactive creation of an infobase.

    Simultaneous use of keys is not allowed.

    Command line options to specify launch options:

    /@<имя файла>
    command line options are written in the specified file

    /F<Путь>
    path to the infobase, if it is stored in a file (no need to specify the file name)

    /S<Адрес>
    the address of the infobase stored on the 1C:Enterprise 8.0 server is added up as follows:

    <Имя компьютера, работающего сервером приложений>\ <Ссылочное имя информационной базы, известное в рамках сервера 1С:Предприятия 8.0>

    /N<Имя>
    Username. Must be specified in the same way as in the list of users created in the Configurator

    /P<Пароль>
    the password of the user whose name is specified in the /N option. If the user does not have a password, this parameter can be omitted

    /WA-
    prohibiting the use of Windows authentication at the start of the Enterprise or the Configurator

    /WA+
    setting the mandatory use of Windows authentication at the start of 1C:Enterprise or Configurator. If the /WA switch is not specified, it is assumed that the /WA+ command line option is used.

    /AU-
    prohibition of displaying a question about updating the current version of 1C: Enterprise from an administrative installation

    /AU+
    setting the output of the question about updating the current version of 1C:Enterprise from the administrative installation. If the /AU switch is not specified, it is assumed that the /AU+ command line option is used.

    /Out<Имя файла>
    [-NoT_runcate]
    setting a file for displaying service messages. If the key –NoT_runcate (separated by a space) is set, the file is not cleared

    /L<Каталог>
    the directory of localized interface resources is specified (for example, "RU")

    /DisableStartupMessages
    Suppresses startup messages: “Database configuration does not match saved configuration. Continue?"; “The capabilities of your computer are not enough to edit the configuration help. You must have Microsoft Internet Explorer version 6.0 or later installed to edit the Help.»; “The capabilities of your computer are not enough to edit html documents, including help sections. To edit html documents, you need to install Microsoft Internet Explorer version 6.0 or higher. In this launch, editing html documents will not be available.

    /C<Строка текста>
    passing parameter to configuration

    C:\1CV8\BIN\1CV8.EXE ENTERPRISE /FDB

    The given command line means that the 1C:Enterprise 8.0 system will be launched in the 1C:Enterprise mode, and the infobase is located in the "\DB" subdirectory of the "С:\1CV8\BIN" directory.

    С:\1cv81bin\1cv8.exe enterprise /s Serv06\ZUP /L RU
    And this given command line means that the 1C:Enterprise 8.0 system will be launched in the "1C:Enterprise" mode, the address of the ZUP infobase stored on the 1C:Enterprise Serv06 server and the Russian interface

    Liked the article? Share with friends!
    Was this article helpful?
    Yes
    Not
    Thanks for your feedback!
    Something went wrong and your vote was not counted.
    Thank you. Your message has been sent
    Did you find an error in the text?
    Select it, click Ctrl+Enter and we'll fix it!