• Launch 1c from the command line with parameters. Command line options to specify startup options. How to test and correct an infobase without checking referential integrity automatically

    This article will talk about the 1C:Enterprise server agent 8.3 (true also for the version 8.2 ) in case of using the agent on operating systems of the 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 launch file

    In order to launch a cluster of 1C:Enterprise servers, you need to run the server agent, or rather the program ragent.exe, which is located in the directory bin installation directory for the 1C:Enterprise system. 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. Parameters for launching the 1C:Enterprise server agent

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

    1C:Enterprise server agent launch parameters
    Parameter Description
    -port<порт> Server agent network port number (ragent). This port is used by the cluster console to access the central server. The cluster agent port is also specified as the network port of the worker server. Default value: 1540 .
    -regport<порт> The number of the cluster master manager network port (rmngr), created by default when ragent is first launched. Default value: 1541 .
    -range<диапазоны> Network port ranges for dynamic selection. From these, service ports of cluster processes are selected if they cannot be selected from the settings of the corresponding working server. Default value: 1560:1591 .
    -debug Starting a server cluster in configuration debugging mode.
    -d<каталог> The directory in which 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. Default value: %LOCALAPPDATA%\1C\1Cv8(%USERPROFILE%\Local Settings\Application Data\1C\1Cv8 for Windows XP and Windows Server 2003).
    -seclev<уровень> Cluster agent process security level. Defines the security level of connections established with the ragent process. The level can take the following values:
    • 0 – unprotected connections;
    • 1 – secure connections only for the duration of user authentication;
    • 2 – permanently secure connections.

    Default value: 0.

    -instsrvc Registering the cluster agent as a Windows service. If ragent is launched with this key, then it registers in the list of Windows services and exits. The -instsrvc key is incompatible with the -rmsrvc key.
    -rmsrvc Unregister the cluster agent as a Windows service. If ragent is launched with this key, then it cancels its registration in the list of Windows services and exits. The -rmsrvc key is incompatible with the -instsrvc key.
    -usr<имя>
    -pwd<пароль>
    Windows username and password under which ragent should be launched as a Windows service. Can only be used in conjunction with the -instsrvc key when registering ragent as a Windows service.
    -srvc Start the ragent process as a Windows service and transfer control to the service manager.
    -start Launch ragent, registered as a Windows service. Launches 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

    When the server agent starts, it searches for a list of servers registered on this computer, using the parameters passed to it at startup. If a 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 launches them.

    If no cluster list is 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 launched both as a service and as an application.

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

    To start the server agent as an application, you need to run the command ragent.exe

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

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

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

    If during installation you selected the option to run the agent as a service, then this service will be registered and launched automatically, and will also start when the operating system starts.

    If the Server Agent was installed as an application (or if the service was removed), it is possible to manually register the service and then start it. To register a service you need to run the command ragent.exe with the following possible parameters (if any parameter is not specified, the default value will be used):

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

    When registering, 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 (deleting a service), you must run the command:

    Ragent.exe -rmsrvc

    To start the service, run the command:

    Ragent.exe -start

    To stop the service, command:

    Ragent.exe -stop

    Did this article help you?

    The 1C program is incredibly popular for maintaining financial records of almost any enterprise. The program has a huge number of functions and capabilities. Sometimes they are not so easy to deal with. You can create multiple user accounts for which a separate database will be created. Each time you start, you need to select the desired account, database, and in some cases, specify other settings and parameters. If there are several users, then you can easily get confused and make a mistake when choosing. Even if you don’t get confused, over time such a number of manipulations for a normal launch gets pretty boring.

    Launching 1C from the command line simplifies working with the program.

    How can I simplify this procedure? The developers have provided for launching the 1C program from the command line. Don't be intimidated by this name, you won't need to remember a bunch of combinations, and you won't need the Windows command line either. You just need to create the required number of shortcuts once, specify the necessary command line parameters in their properties, or create a special bat file and register them in it.

    In this article we will look in detail at how to use this launch method, as well as how to specify all the parameters. In addition, we will share with you a list of the most important commands that will help you fine-tune the client.

    First, let's look at what files are responsible for launching and running the program, as well as the hard drive directory where they are stored. The main directory into which 1C is installed is C:\Program files\1CvXX\, where instead of XX the numbers of the working version are indicated. If the latest 8.3 is used, the folder will be called 1Cv83, if the previous ones are 1Cv82 or 1Cv81. Inside the directory there are other directories with subversions. They already contain the bin folder with the main executable file of the version. It is not clear what the developer is guided by, but with each update the installer creates new folders, over time eating up a lot of free space on the hard drive. Next, find the Common folder, and in it the file 1cestrart.exe. It is he who launches the window for selecting a user and a database. This window, accordingly, represents the file 1cv8s.exe from a specific bin directory.

    After you select a database to work with, another file is launched, the name of which depends on the launch option - 1cv8.exe (thick client) or 1cv8c.exe (thin client). We will tell you the difference between these options a little later. In addition, you can display the shortcuts needed for work and enter launch parameters in them, speeding up the process several times.

    Options for launching the 1C program

    Let's try to figure out what launch options the developer offered us. There are four of them in total, they differ in the principle of operation and their demands on the resources of the computer on which you are working.

    • Thick client - until recently this was the only existing option. It is the most demanding on the resources of the working machine, since all data processing is carried out on the user’s computer, and all the files necessary for work are stored on it. Does not depend on the availability of the Internet, but is tied to hardware and does not provide the possibility of remote work.
    • Thin client is a software shell for accessing the 1C server. It has a familiar menu and settings interface, but since all data processing is done on the server, it is not at all demanding on equipment power. The user is provided with limited functionality; it is possible to organize work both with a remote server via the Internet and on the computer itself in a special software environment.
    • Web client - to work you only need a web browser and Internet access. Accordingly, there is no connection to the computer and place of work. The load on the equipment is minimal, since all calculations take place on a remote server.
    • Configurator is a special mode for fine-tuning the program, which only works when using a thick client.

    Today, the most popular launch option is a thick client with a file database stored on the computer. However, given the total focus on web services and cloud technologies, we can assume that the future lies with the web version.

    It is worth noting that by default, the 1C program settings automatically select the launch option, so you don’t need to think about it. However, if you need to use a specific option, you can create shortcuts on the desktop and enter command line parameters in them, or use a bat file. Let's look at each method in more detail.

    Launch via desktop shortcut

    The easiest way is to use a desktop shortcut whose properties include command line parameters. How to organize access in this way?

    1. Open Windows Explorer, go to the directory that contains the executable file you need, and find the file itself with the exe extension. For example, C:\Program files\1Cv83\bin\1cv8.exe to run in thick client mode.
    2. Right-click on it and select “Create Shortcut”.
    3. After the system displays the message “Windows cannot create a shortcut in this folder. Should I put it on my desktop?” click Yes.
    4. On the desktop, find your shortcut, right-click on it, select “Properties” - “Shortcut” tab - “Object” line.
    5. You will see an entry that looks like this: “C:\Program files\1Cv83\bin\1cv8.exe”. If you place the cursor there, the contents of the line can be changed.
    6. At the end of the line, enter the command that corresponds to your expectations, confirm your entry with the “Apply” - OK buttons.

    Launch using a bat file

    An equally easy option for launching the program. The main difference is that all data is entered manually in a special text file. For some, this method will seem more convenient. How to use it?

    1. Create a simple text document using standard Notepad.
    2. Give it a name in the format file_name.bat, where bat is the file extension, then save it in any folder on your hard drive.
    3. Copy the following commands into the document:

    @echo off
    cls
    start

    1. After start, enter the required command to launch the program with the required parameters.
    2. Save the file and close it.
    3. To launch 1C, double-click on the bat file.

    Attention! For correct operation, it is desirable that the commands do not contain Russian characters, in particular, in the file path or user name. Otherwise, you should be careful when choosing the file encoding.

    Basic startup commands

    Since the command line parameters differ in different versions of 1C, we will consider samples for each of them. We will present it in the following sequence: a decoding of each element and a sample application.

    Version 7.7

    1cv7.exe MODE [ /M | /D‹path› | /U‹path› | /N‹username› | /P‹password› ],

    where MODE is the specified mode in which the program client will be launched. Can take the following values:

    • config - configurator for fine-tuning program functions, as well as programming some operations;
    • debug - a debugger for checking the functionality of some functions and operations;
    • enterprise - normal operating mode for performing day-to-day enterprise maintenance tasks.
    • monitor - command that starts monitor mode.
    • /M - launches exclusive access mode so that no one except you can enter the program. If you are the only user, then exclusive mode is activated automatically. To enter exclusive mode when working on an enterprise network, you need other users to exit the program. The mode is necessary to perform important operations with databases, so that no third party can interfere.
    • /D - the folder where the database is stored. This is especially important if you are using a folder that is different from the one the program selects by default.
    • /U is the user’s working folder, provided that the program is used by several users.
    • /N - username for accessing the database and account.
    • /P - password for accessing the account and database.

    Even more rarely used commands:

    • /T‹path› - path to the folder with temporary files, if you want them to be stored in a non-default folder.
    • /@‹FileName› - to select a batch launch file when working in configurator mode.
    • /W - initialize the web extension.
    • /L - program menu language other than Russian: ENG - English, UKR - Ukrainian

    Example of use: 1cv7 enterprise /Dc:\1c\database /NIvanov /P753159,

    If you run the program with such commands, you will avoid displaying the user and database selection window, and you will not be prompted for a login and password.

    Version 8.2 and 8.3

    • DESIGNER - launch in configurator mode for programming functions and fine tuning.
    • ENTERPRISE - start the normal mode for servicing the enterprise.
    • CREATEINFOBASE‹ConnectionString› ] - creating a new database in which all working information will be stored.
    • Connection String - the following parameters can be specified:
      • File - database folder (for file mode).
      • Srvr - address of the enterprise server (for client-server operation). You can specify several addresses as follows: Srvr=”Server1,Server2” or Srvr=”Server1:1741,Server2:1741”;
    • /AddInList [DatabaseName] - the name of the database that will be used to add to the list. If you skip this parameter, the database will not be added to the list, and if you do not enter your name, it will be assigned automatically.
    • /UseTemplate - the database is created from a ready-made template, which is indicated in the name written in triangular brackets.
    • Ref - the name of the database stored on the program server.

    DBMS indicates the type of database used on the server:

    • MSSQLServer;
    • PostgreSQL;
    • IBMDB2;
    • OracleDatabase.

    For each type of database, you can specify additional parameters:

    • Usr - login.
    • Pwd - password.
    • Locale - localization.

    When starting the program in normal mode or in configurator mode, you can use the following command line parameters:

    • /@‹FileName› - select an external file with specified command line parameters.
    • /F‹DatabasePath› - path to the database in file mode.
    • /S‹ComputerName\DatabaseName› - location of the database on the host computer in server mode.
    • /WS - link to connect to the web server.
    • /IBName‹database name› - launches a database with the specified name from the list of all available databases. If the names of several databases match, the program will generate an error.
    • /IBConnectionString - the address of the connection to the complete database as used by the ConnectionString function described above.

    When using a thin client, you can apply the following settings:

    • wsn - user login for connecting to the web server.
    • wsp - password for connecting to the web server.
    • wspauto - enable automatic proxy server settings.
    • wspsrv - proxy server address.
    • wspport - proxy server port.
    • wspuser - login when working through a proxy server with the need for authorization. username for proxy with authorization.
    • wsppwd - password when working through a proxy server with the need for authorization. username for proxy with authorization.
    • /N‹Login› - login specified in the configurator. Username as specified in the Configurator.
    • /P‹Password› - password of the user specified in the previous parameter. Can be omitted if the user does not have a password.
    • /WSN‹name› - username for authentication on the web server.
    • /WSP‹password› - password of the user whose name is specified in the /WSN parameter for authentication on the web server.
    • /WA- - disables the use of Windows authentication at startup.
    • /WA+ - force the use of Windows authentication at startup. If you do not write this parameter at all, /WA+ is used by default.
    • AppAutoCheckVersion - automatic selection of the required version of the 1C program for each database version.
    • /AppAutoCheckMode - automatic selection of the launch mode based on information from the database.
    • /UseHwLicenses+, /UseHwLicenses- - search for a local protection key.
    • /Debug - launch the 1C program in debugging mode.
    • /DebuggerURL - identification of the debugger to which the application should connect immediately after launch. Specifies the URL of the debugger (protocol, computer, and port number) on which remote objects can be created in the debugger.
    • /RunShortcut‹file name› - launch the program from a file with a list of created databases.

    Configurator batch mode

    • /DumpIB‹FileName› - dumping the database.
    • /DumpCfg‹FileName› - saving settings to a separate file.
    • /DumpDBCfg‹FileName› - saving database settings to a separate file.
    • /ConvertFiles‹filename|directory› - batch conversion of 1C files version 8.x. For the procedure to be successful, the files must be writable, as well as the configurator mode running with an open configuration in which you will perform the conversion.

    For example: 1cv8.exe /ConvertFilesd:/base/ExtProcessing.epf - file conversion,

    1cv8.exe /ConvertFilesd:/base - converting a folder.

    Command Line Examples

    Launching 1C in thick client file mode:

    “C:\Program Files\1cv83\bin\1cv8.exe” ENTERPRISE /F”D:\database\User” /N”Admin” /P”12345′′

    Starting 1C in client-server mode:

    “C:\Program Files\1cv83\bin\1cv8.exe” ENTERPRISE /S”server-base\User” /N”Admin” /P”12345′′

    Conclusion

    We looked at the most basic commands for launching 1C from the command line. By substituting commands, you can perform a wide variety of queries. In fact, there are many more of them, but a significant part of them are rather intended for technical support specialists. Using the information from the article, you can perform all the actions yourself. Leave your questions in the comments.


    Keywords: launch key, launch parameter, command line

    Launching the executable file of the 1C:Enterprise 8.0 system

    In addition to launching by selecting the appropriate icon from the Start -Programs menu of the MS Windows operating system, the 1C:Enterprise 8.0 system can be launched by running the executable file 1CV8.EXE. Such a launch can be done, for example, using the “Run” item in the “Start” menu of the MS Windows operating system, or by double-clicking on the file name 1CV8.EXE in the Explorer program.

    In the command line for launching the 1CV8.EXE file, you can specify all the necessary parameters: launch mode, name of the directory with the infobase, name of the user directory, and others. If the command line parameters are specified correctly, the 1CV8.EXE file will be launched in one of the launch modes: “1C:Enterprise” or “Configurator” - depending on the specified parameters.

    If, when running the 1CV8.EXE file, an error is detected in the command line parameters, or the parameters are missing, then after launch the “Launch 1C:Enterprise” dialog will appear on the screen. In this dialog, the user can select the launch mode of the 1CV8.EXE file, the infobase name and other launch parameters.

    Command line options.
    When running the 1CV8.EXE file, the following parameters can be specified on the command line:

    Mode selection command line options:

    CONFIG
    launching the 1C:Enterprise 8.0 system in the “Configurator” mode;

    ENTERPRISE
    launching the 1C:Enterprise 8.0 system in the “1C:Enterprise” mode;

    CREATEINFOBASE ]
    creation of an information base


    a line specifying the infobase parameters, 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 a value contains whitespace, it must be enclosed in double quotes (").

    The following parameter is defined for the file version:

    File - information base directory;

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

    The following parameters are defined for the client-server option:

    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 a password for the SQL user is not specified, then this parameter can be omitted.

    SQLYOffs is the date offset used to store dates in SQL Server. Can take values ​​0 or 2000. This parameter is not required. If not specified, the value 0 is accepted.

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

    For all options the following parameters are defined:

    Usr - username;

    Pwd - password

    /AddInList
    a parameter indicating under what name to add the database to the list; if not specified, the database will not be added to the list. If a name is not 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 startup options:

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

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

    /S<Адрес>
    The address of the information base stored on the 1C:Enterprise 8.0 server is 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 parameter. If the user does not have a password, this parameter can be omitted

    /WA-
    prohibiting the use of Windows authentication when starting an Enterprise or Configurator

    /WA+
    setting the mandatory use of Windows authentication when starting 1C:Enterprise or Configurator. If the /WA switch is not specified, the /WA+ command line option is assumed to be used.

    /AU-
    prohibiting the display of 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 an administrative installation. If the /AU switch is not specified, the /AU+ command line option is assumed to be used.

    /Out<Имя файла>
    [-NoTruncate]
    installation of a file for outputting service messages. If the –NoTruncate switch is specified (separated by a space), the file is not cleared

    /L<Каталог>
    indicates the directory of localized interface resources (for example, “RU”)

    /DisableStartupMessages
    Suppresses startup messages: “The database configuration does not match the saved configuration. Continue?"; “Your computer's capabilities are not sufficient to edit the configuration help. To edit the help, you must install Microsoft Internet Explorer version 6.0 or higher.”; “Your computer’s capabilities are not sufficient to edit HTML documents, including help topics. To edit HTML documents, you must install Microsoft Internet Explorer version 6.0 or higher. In this launch, editing html documents will not be available."

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

    Configurator batch mode command line parameters:

    /DumpIB<Имя файла>
    unloading the infobase in command mode

    /RestoreIB<Имя файла>
    loading the infobase in command mode

    /DumpCfg<имя cf файла>
    saving configuration to file

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

    /DumpDBCfg<имя cf файла>
    saving database configuration to file

    /RollbackCfg
    return to database configuration

    /CheckModules
    perform syntax check

    /UpdateCfg<имя cf | cfu файла>
    updating a supported configuration

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

    ReIndex
    table reindexing

    LogIntergrity
    logical integrity check

    RecalcTotals
    recalculation of results

    IBCompression
    table compression

    TestOnly
    testing only

    when there are references to non-existent objects:

    BadRefCreate
    create objects

    BadRefClear
    clear objects

    BadRefNone
    don't change

    in case of partial loss of objects:

    BadDataCreate
    create objects

    BadDataDelete
    delete objects

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

    Batch mode command line options for creating delivery and update files:

    /CreateDistributionFiles
    [-cffile<имя cf файла>]
    [-cfufile<имя cfu файла>
    [-f<имя cf файла>|-v<версия дистрибутива>]+]
    Creating delivery and update files

    Cffile<имя cf файла>
    instructions to create a distribution

    Cfufile<имя cfu файла>
    instructions to create an update

    F<имя cf файла>
    the distribution included in the update is specified by the name

    V<версия дистрибутива>]
    the distribution included in the update is determined by the version

    Note: parameter group -f<имя cf файла>|-v<версия дистрибутива>is repeated as many times as distribution files are included in the update.

    Command line parameters for working with the configuration repository:

    /DepotF
    storage directory

    /DepotN
    storage username

    /DepotP
    storage user password

    /DepotDumpCfg<имя cf файла>[-v<номер версии хранилища>]
    save configuration from storage to file (batch mode)

    V<номер версии хранилища>
    v - version number, if the version number is not specified or is equal to -1, the latest version will be saved.

    /DepotUpdateCfg [-v<номер версии хранилища>] [-revised]
    Update storage configuration from file (batch mode)

    V<номер версии хранилища>
    version number, if the version number is not specified or is equal to -1, the latest version will be saved, if the configuration is connected to the storage, then the parameter is ignored

    Revised
    receive captured objects if necessary. If the configuration is not connected to the storage, the parameter is ignored.

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

    /RegServer
    application registration

    /UnregServer
    deleting application registration

    After execution, closes the 1C:Enterprise 8.0 system.

    If parameter values ​​include spaces (for example, a path or file name), the values ​​must be enclosed in quotation marks.

    Below is an example of a command line for starting the 1C:Enterprise 8.0 system:

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

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

    A number of actions, both simplifying the work of users in the program and performing certain administrative tasks with the database, can be performed using the 1C launch parameters:

    • Set up a database backup schedule;
    • Automate data updating (for example, update exchange rates daily);
    • Provide automatic user authorization without the need to enter a username and password;
    • Launch a specific database and a specific version of the platform without the need to select;
    • And much, much more.

    Entering parameters into the base selection window

    The standard information base selection window (Fig. 1), in addition to selecting the launch mode (Configurator or 1Enterprise), has four more functional buttons:

    • Add;
    • Change;
    • Delete;
    • Setup.

    If you select the infobase and click the “Change” button and skip the first dialog box, the form will open (Fig. 2).

    Fig.2

    The input field under “Advanced startup options:” allows you to enter some keys:

    • /N “User name” - this line means that the program will be launched under the user whose name is indicated in quotes;
    • /P “Password” - if user authentication requires entering a password, it must be specified in the parameter value;
    • /UC “Code” - using this parameter allows you to unblock connections to the infobase (blocking is necessary when exclusive access is required).

    Thus, a line like “/N “Ivanov Ivan Ivanovich” /P “1234”” relieves the user at a certain workplace from the need to constantly log in when the system starts.

    Shortcut options

    The above parameters can be specified elsewhere. By calling the context menu of the program shortcut and going to its properties, you can get a window (Fig. 3)

    Fig.3

    To enter parameters, we need the “Object” input field.

    First of all, you need to decide on the application launch mode:

    • DESIGNER (in 8.0 this is the CONFIG parameter) allows you to run the program in configurator mode.
    • ENTERPRISE means starting a normal application.

    Next, you can register a specific database to launch, thereby limiting the user’s access to other databases registered in the system. Depending on the operating mode, the parameter can take several values:

    • /F “base address” - used if work is carried out in file mode;
    • /S “server name”\ “database name on server” - starts the database in client-server mode;
    • /WS “address” - to establish a connection with the web server.

    In the latter case, user authentication on a remote web server may be required. A number of parameters allow you to fine-tune:

    1. Wsn – username under which the connection to the server will be made;
    2. Wsp – password of the above user;
    3. Wspsrv – proxy address;
    4. Wspport – port of the corresponding proxy server.

    If, after adding these parameters to the properties of the 1C shortcut, you add the authorization parameters specified in the previous section, you can implement the ability to launch a specific database by simply double-clicking without additional windows. This is very convenient when, during testing and development, you have to frequently restart the application, as well as in cases where there is a need to restrict user access to the list of databases registered on the computer.

    By copying the created shortcut to the “Startup” folder, you can further optimize the system’s operation (Fig. 4).

    Fig.4

    Now, when the system starts, the application will be launched in the prescribed mode, for a specific database and under a specific user.

    Enabling and disabling Windows user authentication is carried out using the /WA+ and /WA- parameters

    Command line and options

    In fact, the line written in the “Object” field can be copied almost without correction to the command line launched via Start->All Programs->Accessories->Run. The result will be the same.

    Here you can specify several parameters that can also be used from the command line:

    • CREATEINFOBASE – allows you to create an information base of a certain type (the template file must have an extension (dt or cf);
    • Connection String is a required parameter that indicates the location of the created database, must consist of a pair of Parameter Name and Values, combined with an equal sign (example line for the file version of work: File= “D:\1с base\1Cv8Log” for server databases Srvr= “ Server3");
    • DBMS – depending on the specified value, describes what type of database server is used.

    Backing up a database using 1C command line parameters

    To perform this important operation, you can use Notepad or another text editor to create a bat file, the launch schedule of which can be registered in the corresponding Windows menu or on the server.

    Bottom line

    In this article, we did not set out to fully describe all possible system startup parameters, which can be viewed in the corresponding menu of the Syntax Assistant. We tried to give a general idea of ​​this feature and some examples of its use.

    2017-12-07T16:42:26+00:00

    I know that many people are annoyed by having to enter a user name and password when logging into the database. Especially for the “troika” (1C: Accounting 3.0), in which the “Administrator” user with an empty password appeared automatically when upgrading from the second edition:

    In those cases (and they are the absolute majority) when manually entering the username and password (if any) is not necessary, you can and even should proceed according to the following instructions.

    1. Launch a 1C window and select the desired database in it:

    2. Click the "Edit" button. Click the "Next" button until a window appears containing the line "Advanced launch options", for example, like this:

    3. In “Advanced launch parameters” we need to enter our username and password in this form: /Nname /Ppassword

    Please note that /N and /P are written in English letters.

    For example, if we log into the database as the Administrator user with an empty password, our parameters will look like this:

    Attention! If you don't have a password, that is, it's empty, it makes sense to not specify /P at all. Then the parameter line will be like this: /NAdministrator

    If we log into the database under the user Vasya with the password 123, then like this:

    Well, in general, you understand that there is nothing complicated in composing this line

    By the way! If your username or password contains spaces, they must be enclosed in quotes, for example:

    /N"Vasily Petrov" /P"My password"

    After setting up the launch parameters line, click the “Finish” button and try to enter the database.

    Now the database starts immediately, without an intermediate window for entering the user name and password.