Additional launch options 1s 8. Command line options for specifying launch options

Additional launch options 1s 8. Command line options for specifying launch options

In this article, we will look at the 1C launch options and how to use them. Let's look at a few use cases. As we read the article, we will begin to automate startup processes.

When starting 1C, it is possible to use different launch modes, which must be specified in the settings of the shortcut itself, which is responsible for launching 1C.

There are 2 types of launch mode 1C

  1. CONFIG- launch 1C in configurator mode
  2. ENTERPRISE- launch 1C in Enterprise mode.

The 1C launch file is the file - 1cestart.exe, it is located in a subfolder - "1cv8 \ common". At startup given file, the version of the client that is required for operation is automatically determined.

1C launch options with the ability to automatically select a user

  • /N- parameter responsible for "Username"
  • /P- parameter responsible for "User password"

As a rule, it is necessary that the name and password match the name and password specified in the list of users that were entered in the 1C Configurator. In order to see the presence of users in the configurator, you need to go to the "Administration" tab, then "Users". If the password for the selected user is empty, it can be omitted.

These parameters can be specified in the settings when editing the base in the list of bases. They can be specified in the field Extra options launch".

When starting 1C, this window should appear:

You need to write the data, as shown in the figure, specifying your data (name and password), then click the "Finish" button. If all the data is entered correctly, then in the future when entering the this base 1C, the system will not ask you for login details.

Data required to start 1C in automatic mode

  • /F "address"- path to the database (file version)

If your database is located on any server, the path must be written as follows:

  • /S "address"- "Name of the server (cluster information base)" \ "Name of the infobase on the server"

These parameters must be written in the 1C launch shortcut. Right-click on the label and select the "Object" field, add your parameters to it.

If the data is entered correctly in the properties of the shortcut, then the next time you start, the database you need will start automatically. If you have several databases, you can create a separate label for different databases.

Also in 1C there is the possibility of launching it when your computer boots, for this you need to copy the shortcut of your 1C base to the Startup folder.

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 external processing» - the parameter is intended for auto start 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 making changes to the infobase, you can specify the version of 1C with which the launch will be performed (this solution is useful if you have several 1C databases installed in which you work).

An example of automatic archiving of a 1C database.

"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

These parameters must be registered in the 1C launch shortcut in the "Object" field, after which the base archive will be produced, which is located at the address "C: \ Base_Buh" in the folder "C: \ Arhiv" under the name "Buh.dt". In parallel, a log will be written to the file "C:\Arhiv\log_arhiv.txt". These paths are indicated for informational purposes, you will be required to specify your paths, namely the location of your base and the path where the base archives will be saved.

Setting Application Debug Launch Options

During the development process, it becomes necessary to launch the 1C debugger under a specific database user, to launch the debugger in the configurator, you need to run "Parameters" in the "Help" section

In the "Launch 1C: Enterprise" tab in the "Basic" item in the "User" group, by default there is a user under which you entered the "Configurator" mode, in this window you can enter any user that you need for debugging, which in the future will run under the given user.

You can also select the client under which the application will be launched in the future.

The 1C program is incredibly popular for maintaining financial records of almost any enterprise. The program has a huge number of functions and features. Sometimes they are not so easy to deal with. You can create multiple user accounts for which a separate database will be created. At each 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 boring in order.

Launch 1C from command line simplifies the program.

How to simplify this procedure? The developers have provided for the launch of the 1C program from the command line. Do not be afraid of this name, you will not need to memorize a bunch of combinations, and the command Windows string you don't need either. It is enough just to create the required number of shortcuts once, set the necessary command line parameters in their properties, or create a special bat file and write them in it.

In this article, we will analyze in detail 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 see which files are responsible for launching and running the program, as well as the directory hard drive where they are stored. The main directory in which 1C is installed is C:\Program files\1CvXX\, where the numbers of the working version are indicated instead of XX. If the latest 8.3 is used, the folder will be named 1Cv83, if the previous ones are 1Cv82 or 1Cv81. Inside the directory are other directories with subversions. Already in them is 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, eventually eating up a lot of free space on the hard drive. Next, find the Common folder, and in it the 1cestrart.exe file. It is he who launches the user and database selection window. This window, respectively, is a 1cv8s.exe file 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 ( fat client) or 1cv8c.exe (thin client). We will explain the difference between these options a little later. In addition, you can display the shortcuts you need for work and prescribe launch options 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 the demands on the resources of the computer on which you work.

  • 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 performed on the user's computer, it also stores all the files necessary for work. Does not depend on the availability of the Internet, but is tied to hardware, does not represent 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 demanding at all on the power of the equipment. The user is provided with limited functionality, you can organize work as with remote server via the Internet, and on the computer itself in a special software environment.
  • Web client - all you need to work is a web browser and Internet access. Accordingly, there is no connection to the computer and the place of work. The load on the equipment is minimal, since all calculations take place on a remote server.
  • Configurator - special mode For fine tuning program that only works when using a thick client.

To date, the most popular launch option is a fat client with file base data stored on the computer. However, given the total focus on web services and cloud technologies, we can assume that the future is in the web version.

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

Launch via desktop shortcut

Most in a simple way will use the shortcut on the desktop, in the properties of which the command line parameters are specified. How to organize access in this way?

  1. Open Windows Explorer, navigate to the directory that contains the executable you want, and find the .exe file itself. For example, C:\Program files\1Cv83\bin\1cv8.exe to run in thick client mode.
  2. Click on it right click mouse and select "Create Shortcut".
  3. After the system displays the message “Windows cannot create a shortcut in this folder. Put it on the desktop? click Yes.
  4. Find your shortcut on the desktop, right-click on it, select "Properties" - the "Shortcut" tab - the "Object" line.
  5. You will see the entry the following kind: “C:\Program files\1Cv83\bin\1cv8.exe”. If you put the cursor there, then the contents of the line can be changed.
  6. At the end of the line, enter the command that matches your expectations, confirm the entry with the "Apply" - OK buttons.

Starting with a bat file

No less easy way to launch the program. The main difference is the registration of all data manually in a special text file. For some, this method will seem more convenient. How to use it?

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

@echo off
cls
start

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

Attention! For correct operation, it is desirable that there are no Russian characters in the commands, in particular, in the file path or username. Otherwise, you should carefully consider the choice of file encoding.

Basic startup commands

Because in different versions 1C command line parameters are different, let's look at samples for each of them. We will present in the following sequence: decoding of each element and a sample application.

Version 7.7

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

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

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

More rarely used commands:

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

Usage example: 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 asked for a username 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› ] - create new base data, which will store all the working information.
  • ConnectionString - the following parameters can be specified:
    • File - database folder (for file mode).
    • Srvr - enterprise server address (for client-server operation). You can specify multiple addresses as follows: Srvr=”Server1,Server2” or Srvr=”Server1:1741,Server2:1741”;
  • /AddInList [BaseName] - the name of the database that will be used to add to the list. If you skip this parameter, the base will not be added to the list, and if you do not enter your own 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 - name of the database stored on the application server.

DBMS indicates the type of database used on the server:

  • MS SQL Server
  • 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 external file with the specified command line options.
  • /F‹PathBase› - path to the database when file mode work.
  • /S‹ComputerName\BaseName› - location of the base on the host computer in server mode.
  • /WS - link to connect to the web server.
  • /IBName‹base 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 full database connection as it is used by the ConnectionString function described above.

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

  • wsn - user login to connect to the web server.
  • wsp - password to connect to the web server.
  • wspauto - enable automatic proxy settings.
  • wspsrv - proxy server address.
  • wspport - port of the proxy server.
  • 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 it is set in the Configurator.
  • /P‹Password› - the password of the user specified in the previous parameter. Can be omitted if the user does not have a password.
  • /WSN- username for authentication on the web server.
  • /WSP‹password› - the password of the user whose name is specified in the /WSN parameter for authentication on the web server.
  • /WA- - disable the use of Windows authentication at startup.
  • /WA+ - Force Windows authentication at startup. If you do not write this parameter at all, /WA+ is used by default.
  • AppAutoCheckVersion - automatic selection for each database version desired version 1C programs.
  • /AppAutoCheckMode - automatic choice of startup mode based on information from the database.
  • /UseHwLicenses+, /UseHwLicenses- - search for a local security key.
  • /Debug - launch the 1C program in debug mode.
  • /DebuggerURL - identification of the debugger to which the application should connect immediately after launch. Specifies the debugger URL (protocol, computer, and port number) on which the debugger can create remote objects.
  • /RunShortcut‹file name› - run the program from the list file of created databases.

Batch Mode Configurator

  • /DumpIB‹FileName› - unload the database.
  • /DumpCfg‹FileName› - saving settings to a separate file.
  • /DumpDBCfg‹FileName› - save database settings to a separate file.
  • /ConvertFiles‹file name|catalog› - batch conversion of 1C version 8.x files. For the procedure to be successful, the files must be writable, as well as running the configurator mode 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 - folder conversion.

Command line examples

Launching 1C in the file mode of a thick client:

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

Launching 1C in client-server mode:

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

Conclusion

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

Launching the executable file of the 1C:Enterprise 8.x system

In addition to launching by selecting the appropriate icon from the Start - Programs menu operating system MS Windows, the launch of the 1C:Enterprise 8.x system can be performed by running the 1CV8.EXE executable file. Such a launch can be performed, for example, using the “Run” item of 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 correct, the 1CV8.EXE file will be launched in one of the launch modes: "1C:Enterprise" or "Configurator" - depending on the specified parameters.

If an error is detected in the command line parameters when launching the 1CV8.EXE file, or there are no parameters, then after launching the 1C:Enterprise Start dialog will be displayed on the screen. In this dialog, the user can select the launch mode for the 1CV8.EXE file, the name of the infobase, and other launch parameters.

Examples:


File option:
"C:\Program Files\1cv82\common\1cestart.exe" ENTERPRISE /F"Database Path" /N"Username" /P"Password"
Client-server option:
"C:\Program Files\1cv82\common\1cestart.exe" ENTERPRISE /S"NameServer\Base" /N"Username" /P"Password"
server port(for example 1641):

"C:\Program Files\1cv82\common\1cestart.exe" ENTERPRISE /S"NameServer:1641\Base" /N"Username" /P"Password"
Running the program as a user and doing processing on opening:
"C:\Program Files\1cv82\8.2.17.235\bin\1cv8s.exe" ENTERPRISE /F "D:\1C\HRM" /N user /P password /Execute "D:\1C\External_processing_1C\RunningProcessing\Desktop. epf"
"C:\Program Files\1cv82\common\1cestart.exe" ENTERPRISE /F "PATH TO DB FOLDER" /N USER /P PASSWORD /Execute "C:\\processing.epf"
1C infobase archiving
"C:\Program Files\1cv82\common\1cestart.exe" DESIGNER /S Server-1C\1C-Work82 /N"Administrator" /P"12345" /DumpIB \\bdc\BackUp\Base.dt
"C:\Program Files\1cv82\common\1cestart.exe" config /S server:1641\82_zup /N Administrator /P zzzz /WA- /Out"c:\Backup\backup.log" -NoT_runcate /DumpIB H: \1S_VIGR\82_zup.dt


For 8.1:
For the file version:
"C:\Program Files\1cv81\bin\1cv8.exe" ENTERPRISE /F"D:\1C_base\ZUPRAZR" /N"EMigachev" /P"12345"
For client-server version:
"C:\Program Files\1cv81\bin\1cv8.exe" ENTERPRISE /S"server-1C\ZUP" /N"EMigachev" /P"12345"
If one server has 8.1 and 8.2 (how to set- ), then when connecting to 8.2 databases, you need to specifyserver port(for example 1641):
"C:\Program Files\1cv82\common\1cestart.exe" ENTERPRISE /S"server-1C:1641\ZUP" /N"EMigachev" /P"12345"

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.x system in the "Configurator" mode;
ENTERPRISE - launching the 1C:Enterprise 8.x 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, then it must be enclosed in double quotes (").

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 - name SQL user;
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 parameters 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.x server is added as follows:
<Имя компьютера, работающего сервером приложений>\ <Ссылочное имя информационной базы, известное в рамках сервера 1С:Предприятия 8.x>

/N<Имя>-Username. Must be specified in the same way as in the list of users created in the Configurator
/P<Пароль>-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 - prohibition of using 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 the output of the update question current version 1C:Enterprise with 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<Каталог>- specifies the directory of localized interface resources (for example, "RU")
/DisableStartupMessages - Suppresses startup messages: "The database configuration does not match the 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. In this launch, editing html documents will not be available.
/C<Строка текста>- passing the parameter to the configuration Command line parameters of the batch mode of the configurator:
/DumpIB<Имя файла>- unloading the infobase in command mode

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

/UpdateDBCfg [-WarningsAsErrors] - update 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 the database configuration to a file
/RollbackCfg - return to database configuration
/CheckModules - perform syntax check
/UpdateCfg<имя cf | cfu файла>- update configuration under support
/IBCheckAndRepair [-ReIndex] [-LogIntergrity] [-RecalcTotals] [-IBCompression] [-TestOnly | [-BadRefCreate | -BadRefClear | -BadRefNone]
[-BadDataCreate | -BadDataDelete] ] - test and fix the infobase
ReIndex - table reindexing
LogIntergrity - logical integrity check
RecalcTotals - recalculation of totals
IBCompression - table compression
TestOnly - only testing

If there are references to non-existent objects:
BadRefCreate - create objects
BadRefClear - clear objects
BadRefNone - do not change

in case of 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, otherwise - 1 (101 if there are errors in the data).


Command line options for creating distribution and update files in batch mode:
/CreateDistributionFiles [-cffile<имя cf файла>] [-cfufile<имя cfu файла>[-f<имя cf файла>|-v<версия дистрибутива>]+] - Create distribution and update files
-cffile<имя cf файла>- an instruction to create a distribution
-cfufile<имя cfu файла>- instruction to create an update
-f<имя cf файла>- the distribution kit included in the update is specified by the name
-v<версия дистрибутива>] - the distribution included in the update is specified by the version
Note: parameter group -f<имя cf файла>|-v<версия дистрибутива>repeats as many times as the 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 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 storage, then the parameter is ignored
-revised - Retrieve captured objects if needed. If the configuration is not connected to the repository, then the parameter is ignored.

Command line parameters for batch registration of 1C:Enterprise 8.x as an Automation server:
/RegServer - application registration
/UnregServer - remove application registration
After execution, it closes the 1C:Enterprise 8.x system.
If parameter values ​​include spaces (for example, a path or file name), the values ​​must be enclosed in quotation marks.

Below are command line examples for starting the 1C:Enterprise 8.x system:
C:\1CV8\BIN\1CV8.EXE ENTERPRISE /FDB
The given command line means that the 1C:Enterprise 8.x 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.x system will be launched in the "1C:Enterprise" mode, the address of the ZUP infobase stored on the 1C:Enterprise server Serv06 and the Russian interface

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 label
"C:\Program Files\1cv81\bin\1cv8.exe" ENTERPRISE /F"D:\Configurations\Typical\Torg" /N"Username" /P"Password" /UC 456743

Code DOS Batch File echo off cls "C:\Program Files\1 cv81\bin\1 cv8.exe" ENTERPRISE /S"server\ESKM" /N"Admin" /P"ESKM" /DisableStartupMessages /C"ShutdownUsers" " C:\Program Files\1 cv81\bin\1 cv8.exe" CONFIG /S"server\ESKM" /N"Admin" /P"ESKM" /DisableStartupMessages /UpdateDBCfg /UC"BatchUpdateIB Configuration" "C:\Program Files\ 1 cv81\bin\1 cv8.exe" ENTERPRISE /S"server\ESKM" /N"Admin" /P"ESKM" /C"AllowUsers" /UC" BatchUpdateConfigurationIB"

Launching the executable file of the 1C:Enterprise 8.x system

In addition to launching by selecting the appropriate icon from the Start - Programs menu of the MS Windows operating system, launching the 1C:Enterprise 8.x system can be performed by launching the 1CV8.EXE executable file. Such a launch can be performed, for example, using the “Run” item of 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 correct, the 1CV8.EXE file will be launched in one of the launch modes: "1C:Enterprise" or "Configurator" - depending on the specified parameters.

If an error is detected in the command line parameters when launching the 1CV8.EXE file, or there are no parameters, then after launching the 1C:Enterprise Start dialog will be displayed on the screen. In this dialog, the user can select the launch mode for the 1CV8.EXE file, the name of the infobase, and other launch parameters.

Examples:


File option:
"C:\Program Files\1cv82\common\1cestart.exe" ENTERPRISE /F"Database Path" /N"Username" /P"Password"
Client-server option:
"C:\Program Files\1cv82\common\1cestart.exe" ENTERPRISE /S"NameServer\Base" /N"Username" /P"Password"
server port(for example 1641):

"C:\Program Files\1cv82\common\1cestart.exe" ENTERPRISE /S"NameServer:1641\Base" /N"Username" /P"Password"
Running the program as a user and doing processing on opening:
"C:\Program Files\1cv82\8.2.17.235\bin\1cv8s.exe" ENTERPRISE /F "D:\1C\HRM" /N user /P password /Execute "D:\1C\External_processing_1C\RunningProcessing\Desktop. epf"
"C:\Program Files\1cv82\common\1cestart.exe" ENTERPRISE /F "PATH TO DB FOLDER" /N USER /P PASSWORD /Execute "C:\\processing.epf"
1C infobase archiving
"C:\Program Files\1cv82\common\1cestart.exe" DESIGNER /S Server-1C\1C-Work82 /N"Administrator" /P"12345" /DumpIB \\bdc\BackUp\Base.dt
"C:\Program Files\1cv82\common\1cestart.exe" config /S server:1641\82_zup /N Administrator /P zzzz /WA- /Out"c:\Backup\backup.log" -NoT_runcate /DumpIB H: \1S_VIGR\82_zup.dt


For 8.1:
For the file version:
"C:\Program Files\1cv81\bin\1cv8.exe" ENTERPRISE /F"D:\1C_base\ZUPRAZR" /N"EMigachev" /P"12345"
For client-server version:
"C:\Program Files\1cv81\bin\1cv8.exe" ENTERPRISE /S"server-1C\ZUP" /N"EMigachev" /P"12345"
If one server has 8.1 and 8.2 (how to set- ), then when connecting to 8.2 databases, you need to specifyserver port(for example 1641):
"C:\Program Files\1cv82\common\1cestart.exe" ENTERPRISE /S"server-1C:1641\ZUP" /N"EMigachev" /P"12345"

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.x system in the "Configurator" mode;
ENTERPRISE - launching the 1C:Enterprise 8.x 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 (").

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 parameters 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.x server is added as follows:
<Имя компьютера, работающего сервером приложений>\ <Ссылочное имя информационной базы, известное в рамках сервера 1С:Предприятия 8.x>

/N<Имя>-Username. Must be specified in the same way as in the list of users created in the Configurator
/P<Пароль>-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 - prohibition of using 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<Каталог>- specifies the directory of localized interface resources (for example, "RU")
/DisableStartupMessages - Suppresses startup messages: "The database configuration does not match the 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 the parameter to the configuration Command line parameters of the batch mode of the configurator:
/DumpIB<Имя файла>- unloading the infobase in command mode

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

/UpdateDBCfg [-WarningsAsErrors] - update 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 the database configuration to a file
/RollbackCfg - return to database configuration
/CheckModules - perform syntax check
/UpdateCfg<имя cf | cfu файла>- update configuration under support
/IBCheckAndRepair [-ReIndex] [-LogIntergrity] [-RecalcTotals] [-IBCompression] [-TestOnly | [-BadRefCreate | -BadRefClear | -BadRefNone]
[-BadDataCreate | -BadDataDelete] ] - test and fix the infobase
ReIndex - table reindexing
LogIntergrity - logical integrity check
RecalcTotals - recalculation of totals
IBCompression - table compression
TestOnly - only testing

If there are references to non-existent objects:
BadRefCreate - create objects
BadRefClear - clear objects
BadRefNone - do not change

in case of 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, otherwise - 1 (101 if there are errors in the data).


Command line options for creating distribution and update files in batch mode:
/CreateDistributionFiles [-cffile<имя cf файла>] [-cfufile<имя cfu файла>[-f<имя cf файла>|-v<версия дистрибутива>]+] - Create distribution and update files
-cffile<имя cf файла>- an instruction to create a distribution
-cfufile<имя cfu файла>- instruction to create an update
-f<имя cf файла>- the distribution kit included in the update is specified by the name
-v<версия дистрибутива>] - the distribution included in the update is specified by the version
Note: parameter group -f<имя cf файла>|-v<версия дистрибутива>repeats as many times as the 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 no version number is specified, or 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 equal to -1, the latest version will be saved, if the configuration is connected to the storage, then the parameter is ignored
-revised - Retrieve captured objects if needed. If the configuration is not connected to the repository, then the parameter is ignored.

Command line parameters for batch registration of 1C:Enterprise 8.x as an Automation server:
/RegServer - application registration
/UnregServer - remove application registration
After execution, it closes the 1C:Enterprise 8.x system.
If parameter values ​​include spaces (for example, a path or file name), the values ​​must be enclosed in quotation marks.

Below are command line examples for starting the 1C:Enterprise 8.x system:
C:\1CV8\BIN\1CV8.EXE ENTERPRISE /FDB
The given command line means that the 1C:Enterprise 8.x 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.x system will be launched in the "1C:Enterprise" mode, the address of the ZUP infobase stored on the 1C:Enterprise server Serv06 and the Russian interface

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 label
"C:\Program Files\1cv81\bin\1cv8.exe" ENTERPRISE /F"D:\Configurations\Typical\Torg" /N"Username" /P"Password" /UC 456743

Code DOS Batch File echo off cls "C:\Program Files\1 cv81\bin\1 cv8.exe" ENTERPRISE /S"server\ESKM" /N"Admin" /P"ESKM" /DisableStartupMessages /C"ShutdownUsers" " C:\Program Files\1 cv81\bin\1 cv8.exe" CONFIG /S"server\ESKM" /N"Admin" /P"ESKM" /DisableStartupMessages /UpdateDBCfg /UC"BatchUpdateIB Configuration" "C:\Program Files\ 1 cv81\bin\1 cv8.exe" ENTERPRISE /S"server\ESKM" /N"Admin" /P"ESKM" /C"AllowUsers" /UC" BatchUpdateConfigurationIB"

Platforms: 1C:Enterprise 8.3, 1C:Enterprise 8.2, 1C:Enterprise 8.1
Configurations: All configurations

2012-11-16
21362

As you know, clients do not give the opportunity to select the base. They are launched with special parameters on the command line. You can also create a “.bat” file and write in it a direct launch of 1C with the necessary parameters. It represents the usual text file, to which the extension ".txt" was replaced with ".bat". Consider these parameters 1C. Using the parameters, you can run the 1C program without any extra effort. Besides this option very fast.

This launch method is extremely convenient when there is a need to constantly launch several copies of the 1C program on behalf of various users. This need often arises when testing a single database. In this state of affairs, without creating the appropriate ".bat" file, the startup procedure will be very inconvenient and lengthy.

Consider some 1C parameters that may be useful to you when working: for network 1C, file 1C and new (thin client).

Starting a database that is already in the list of databases - parameters:

C:\Program Files\1cv82\common\1cestart.exe ENTERPRISE /IBName"BaseName in the List" /NUser /PPassword

In this case, the 1C starter is launched. Mode - "enterprise", the name of the target database is already in the list of 1C databases.

Run directly (file option) without entering user and password

C:\Program Files\1cv82\8.2.13.205\bin\1cv8.exe ENTERPRISE /F"C:\Base1" /NUser /PPassword

Here a thick client is launched with a direct path to the database directory. It doesn't matter if the target base is on the list. Mode - "Enterprise".

Direct launch (network option) without entering a user and password

C:\Program Files\1cv82\8.2.13.205\bin\1cv8.exe ENTERPRISE /S"ServerComputerName\BaseNameOnServer1C" /NUser /PPassword

The same story as in the previous paragraph, only for the network version of 1C.

Running the configuration for the thin client "Trade Management" in thick client mode

C:\Program Files\1cv82\8.2.13.205\bin\1cv8.exe ENTERPRISE /RunModeOrdinaryApplication

Starting external processing directly at the start of 1C

C:\Program Files\1cv82\8.2.13.205\bin\1cv8.exe ENTERPRISE /Execute"FullPathToProcessFile.epf"

Download database to file

File Version: C:\Program Files\1cv81\bin\1cv8.exe" config /F"C:\bases1c\BUH\Titan" /N"Admin" /DumpIB "C:\Buh_Titan_%date%.dt

Server Version: C:\Program Files\1cv81\bin\1cv8.exe" config /S"Server\AtlantBuh" /N"Admin" /DumpIB "C:\Buh_Titan_%date%.dt

Command line options to specify launch options

/@<имя файла>
Path to a file with command line options.

/F<Путь>
path to the file infobase (excluding the file name).

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

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

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

/P<Пароль>
the password of the user whose name is specified in the /N option. Is an optional parameter

/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. 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

Not used for basic versions:
UC<Код доступа>
Establishing a connection to an infobase that is blocked from establishing connections. If a non-empty access code is specified when establishing a lock, then to establish a connection, you must specify this code in the /UC parameter.

/RunShortcut<имя файла>
launching the 1C:Enterprise 8.1 system with a list of infobases obtained using the specified file. The file can be a list file of common infobases (*.v8i), or an infobase shortcut file (*.v8l).

/IBConnectionString
setting the connection string with the entire infobase, in the form in which it is returned by the InfobaseConnectionString() function. Parts of the connection string can be overridden by pre-existing options. This requires /IBConnectionString to be on the command line before them. When passing a connection string as a command line parameter, remember that the connection string contains quotes. Therefore, it is required to put the entire string in quotes, and double the quotes contained inside.

/SLev
security level of the client connection with the 1C:Enterprise server. /SLev0 - insecure connection; /SLev1 - secure connection only during authentication; /SLev2 - secure connection for the entire session. If the parameter is not specified, then it is equivalent to /SLev0.

debug
indicates that 1C:Enterprise is launched in debug mode.

/DebuggerURL
identification of the debugger to which the application should connect immediately after launch. Specifies the debugger URL (protocol, computer, and port number) on which the debugger can create remote objects.

/SAOnRestart
prompt for a password when restarting the system from this session. By default, no password is requested.

/execute<имя файла внешней обработки >
is designed to start external processing in 1C:Enterprise mode immediately after the system starts.

/logui
designed to run a client application to be created on the user's computer in the application files folder %APPDATA%\1C\1Cv81\<Уникальный идентификатор ИБ>\logui.txt" file logui.txt, which will record all interactive user actions (keystrokes, mouse clicks).

/SchJobDn
manages the execution of scheduled jobs. Possible value is "Y" or "N". "Y" - the created infobase will be prohibited from performing scheduled tasks.

Configurator Batch Mode Command Line Options

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

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

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

/LoadCfg<имя cf файла>

/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 the database configuration to a file

/RollbackCfg
back to database configuration

/CheckModules
perform syntax check

/UpdateCfg<имя_файла>
updating a supported configuration. Filename is the name of the .cf or .cfu file.

/IBCheckAndRepair [-ReIndex]
[-LogIntergrity] [-RecalcTotals]
[-IBCompression]
[-TestOnly | [-BadRefCreate |
-BadRefClear | -BadRefNone]
[-BadDataCreate |
-BadDataDelete] ]

perform testing and correction of the infobase