Often, advice on certain actions and fixes in Windows 10, 8 and Windows 7 includes steps like: “create a .bat file with the following contents and run it.” However, a novice user does not always know how to do this and what such a file is.

This instruction details how to create a batch file, run it and some Additional Information, which may be useful in the context of the topic under consideration.

In a batch file, you can run any programs and commands from this list: https://technet.microsoft.com/ru-ru/library/cc772390(v=ws.10).aspx (however, some of these may not be available in Windows 8 and Windows 10). Below is just some basic information for novice users.

Most often, the following tasks occur: launching a program or several programs from a .bat file, launching some function (for example, ).

To run a program or programs, use the command:

Start "" path_to_program

If the path contains spaces, put the entire path in double quotes, for example:

Start "" "C:\Program Files\program.exe"

After the path to the program, you can also specify the parameters with which it should be launched, for example (similarly, if the launch parameters contain spaces, put them in quotes):

Start "" c:\windows\notepad.exe file.txt

Note: in double quotes After start, according to the specifications, the name of the command file must be indicated, displayed in the command line header. This is an optional parameter, but in the absence of these quotes, execution of bat files containing quotes in paths and parameters may proceed in an unexpected way.

Another useful feature is to launch another bat file from the current file; this can be done using the call command:

Call path_to_bat_file parameters

The parameters passed during startup can be read inside another bat file, for example, we call the file with the parameters:

Call file2.bat parameter1 parameter2 parameter3

In file2.bat you can read these parameters and use them as path parameters to launch other programs in this way:

Echo %1 echo %2 echo %3 pause

Those. For each parameter we use its serial number with a percent sign. The result in the above example will be the output of all passed parameters to the command window (the echo command is used to output text to the console window).

By default, the command window closes immediately after all commands have been completed. If you need to read information inside a window, use the pause command - it will stop executing commands (or closing the window) until the user presses any key in the console.

Sometimes, before executing the next command, you need to wait some time (for example, until full launch first program). To do this you can use the command:

Timeout /t time_in_seconds

If desired, you can run the program as a minimized or expanded video using the MIN and MAX parameters before specifying the program itself, for example:

Start "" /MIN c:\windows\notepad.exe

To close the command window after all commands have been executed (although it usually closes anyway if you use start to start it), use the exit command in last line. If the console still does not close after starting the program, try using this command:

Cmd /c start /b "" program_path parameters

Note: In this command, if the program paths or parameters contain spaces, there may be problems with startup, which can be solved like this:

Cmd /c start "" /d "path_to_folder_with_spaces" /b name_of_program_file "parameters_with_spaces"

As already noted, this is just a very basic introduction to the most commonly used commands in bat files. If necessary, perform additional tasks, try to find necessary information on the Internet (search, for example, “do something on the command line” and use the same commands in the .bat file) or ask a question in the comments, I will try to help.

Using bat files (otherwise known as “batnik”, “batch file”) can often make your work easier, for example, automate installation software, in advance given parameters; date and time synchronization; running command sequences, etc. However, to use such scripts you need to be able to create them. At their core, files with the .bat extension are a set console commands, the same as those used on the command line.

The article discusses three methods for creating .bat files:

  1. Using the command line.
  2. Using the Notepad program.
  3. Using the “Dr.Batcher” utility.

Step 1. To launch the command line in the “Start” menu, use the “Search programs and files” dialog. You must set the cmd search parameter and left-click on the icon in the “Programs” section.

Step 2. It is recommended to use a separate directory to store written batch files, so select a location on your hard drive and create a special folder by entering the command “MD D:\Bat”.

On a note! The command is entered without quotes, a space is added only after useM.D. In this case, a folder named « Bat"will be created on diskD. The command line is case insensitive, that is, the result of executing “MDD:\Bat", "mdD:\Bat" and "mdd:\Bat" will be the same.

Step 3. Create the actual batch file using the command “@echo off > D:\Bat\probnik.bat”.

On a note! In this case, case is important when specifying the placement path, that is, the folder “bat", "Bat" and "BAT" - three independent and completely different directories. If you point to a non-existent folder, the command will not be executed. Please note that there will be no error message either.

Step 4. To change the contents of a file, open the location where it is stored, call the context menu and select the “Change” line.

Create a batch file using Notepad

Step 1. To launch the notepad, go to the “All Programs” menu, select “Accessories” and click on the launch icon.

Step 2.

Learn how to create a file without much programming knowledge from the new article -

As an example, we suggest you use the following code, which displays an image of a star:

« @echo off

mode con cols=32 lines=50

title star!

for %%i in (

88888888888888881888888888888888,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,

) do echo %%i

pause > null

Attention! The code must be entered without quotes. Always check the command syntax. If you forget to put a comma at the end of a line, then when the program is executed, it will merge with the next one.

Step 3. Save the resulting file to the desired directory. To change the resolution, use the “File type” line, select “All files” in it, and when entering a name, after the period, indicate “bat”.

Creating a batch file using the "Dr.Batcher"

Specified software is paid, but provides the opportunity to use the trial version for 30 days.

Step 1. To create a file, use the “File” menu, the “New...” item or the “Ctrl+N” key combination.

Step 2. In the dialog box, check "Empty Batch File" and click "OK".

Step 3. Specify which commands the bat file should execute.

On a note! The right frame contains key commands that you can use when writing code. Just select the one you want and click on the “InsertCommand", which helps save time when working.

Step 4. Save the resulting file to the desired directory.

Important! Please note that this utility allows you to debug the program on the fly. Just use the menu "Batch" to start the already entered sequence. The progress is shown in the bottom frame. When using the item "ExecuteinExternalWindow...” will execute the batch file, similar to launching it using the operating system.

Conclusion

We have described three ways to create files with the .bat extension. Two of specified methods are using standard methods, available with Windows, one requires the installation of additional software. The evaluation of each method is given in the summary table.

Information\NameCommand lineNotebookDr.Batcher
LicenseDelivered with WindowsDelivered with WindowsPaid
Russian languageDepending on Windows versionDepending on version
Creating a Batch FileYesYesYes
Editing a Batch FileNoYesYes
Interface convenience (from 1 to 5)4 4 5

Video - Creating a Bat File

People who are familiar with the term batch file know that BAT file s can greatly simplify life and save time if you know how to write and use them correctly. In this article, I will talk about how to create BAT files and introduce you to common mistakes that usually occur when writing them.

Creating a BAT file is very simple. Just open Notepad and save a blank sheet with the .bat extension, selecting the Save as... option and writing in the File name field something ending in .bat, for example test.bat.
Specify the file type as in the screenshot below - All files. Save and receive a BAT file.

You can edit the BAT file in Notepad or any other text editor focused on working with code.

Now let's move directly to practical information. Many people on the Internet are looking for an answer to the question: How to deal with spaces in BAT files? . In paths to folders and executable files, the presence of a space causes an error. The most common answer is: Enclose the path in quotes. And this answer is not correct. True, some will foam at the mouth and claim that it works. So, two whys appeared - why it is not true and why some will be.

On Windows (as well as on UNIX), programs installed on the system are registered accordingly by the system. Therefore some of installed programs can be launched with one simple command from a BAT file or from the Run applet in the Start panel. One such program is Firefox:

start firefox

If after this command you write the path to the executable file, then the following happens: the Firefox browser starts and tries to process the request, that is, the file whose path is specified. That is, if you specify the following:

start firefox C:\Program Files\Mozilla Firefox\firefox.exe

The browser will open, no matter what it says after start firefox . That is why some comrades will assure that everything works great. However, if you take portable program, then the situation will be completely different. Let's take as an example Filezilla ftp client. Since the system does not know about the program, the above line

start filezilla

won't work. To run a program unknown to the system, you need to specify the path to it:

start D:\FileZilla\FileZilla.exe

Long names in bat files

Now let's talk about paths and spaces. The first way to avoid this problem is to use a short name.

start C:\Program Files\Sound Club\scw.exe

In the example there are two names with spaces. Let's replace them with short ones. The rules for creating short names are as follows: the short name uses the first six characters of the name, excluding spaces, after the name the serial number of the folder is indicated using the symbol ~ . Since my Program Files and Sound Club folders are singular, it will look like this:

Program Files - Progra~1 Sound Club - SoundC~1 start C:\Progra~1 \SoundC~1 \scw.exe

If there are two folders nearby, for example Sound Club and Sound Clown, then following the rules, in the example above you will need to specify SoundC~2, since in this case Sound Club will be the second name (names are counted in alphabetical order).

But this method is inconvenient because you have to indicate serial numbers. The situation with Program files is more or less normal. Few people will find two similar folders on system disk. But if you decide to install multiple Mozilla products on your computer. You will end up with several folders, for example:

Mozilla Firefox Mozilla Thunderbird Mozilla Sunbird

Short names for them will be

Mozill~1 Mozill~2 Mozill~3

Now imagine that you wrote a BAT file mentioning these programs. If you uninstall Firefox, the remaining entries will no longer work, and if you uninstall Thunderbird, the entry for Sunbird will no longer work. In short, the method with short names is not our way.

Spaces and quotes in bat files

Quotes actually work, but not in the ways that are usually advised. The following is usually recommended:

start "C:\Program Files\Sound Club\scw.exe"

So the command will not work, because if you look at the help for it (start /? ), then in the help you will see the following:

START ["header"] [command/program] [parameters]

As you can see, the first parameter is the window title and it is in quotes. This parameter is optional, but it is still recommended to specify it () to avoid errors when executing the command. You don't have to write anything inside the quotes. It will turn out like this:

start "" "C:\Program Files\Sound Club\scw.exe"

The option of enclosing all names with spaces separately in quotes will also work:

start C:\"Program Files"\"Sound Club"\scw.exe

However, in some cases, none of the above works. In such cases, I can recommend using the cd command. Go to the system partition, then use cd to the Program Files folder and run the program (start):

%SystemDrive% cd \Program Files\Sound Club\ start scw.exe

I think this method will work everywhere. Now a couple more important points. Let's say you have created a batch file that launches three programs and you need to temporarily exclude the launch of one of the three. This can be done by deleting the line or commenting it out. The first method is vandal, and the second, see below.

start firefox start jetaudio rem start defraggler

In this case, the launch of the Defraggler.exe program installed on the system is disabled. Comment lines by specifying the rem command at the beginning of the line. All BAT files are executed in a console window. To make it disappear when the commands are completed, do not forget to write the exit command at the end.

start firefox start jetaudio rem start defragler exit

Launching applications from a bat file

In the first part of the article, I spoke in general terms about BAT files. Now it has become clear what it is and what it is eaten with. In the second part we will talk about more specific things. For example, how to use a BAT file to launch several applications with certain settings or in automatic mode install the program so as not to waste time on answers like You agree to the terms license agreement? and don't press unnecessary buttons.

Several ways to launch applications using a BAT file were outlined above. The very first one is a short command to launch the program installed on the system.

start firefox

This doesn't always work. Therefore, this technique can be fully applied on a specific system, but as a universal solution he doesn't fit. If your goal is to make the BAT file work everywhere and always, you need to use full paths:

start C:\"Program Files"\"Mozilla Firefox"\firefox.exe

I also noted that the BAT file must contain a command to complete:

start C:\"Program Files"\"Mozilla Firefox"\firefox.exe exit

Running programs in bat files with parameters (keys)

You can not just run the program, but give it additional commands at startup. For example, command to run minimized:

start /min D:\FileZilla\FileZilla.exe exit

To command in this case means to indicate the key. The key is indicated with a slash after the main command (command / key). The main command in this case is start . True, the min key only works in half the cases, because it relates specifically to the start command, and not to the programs that this command launches.

In general, there are a lot of keys and sets of keys different programs may vary significantly. There are, however, a few common ones. For example, the help key (/? or /help). To trace the operation of this key, consider practical example. Open the console (Click + R , enter cmd , then Enter ) and type the following in the console:

start /?

The console will display a list of valid keys with comments for the start command.

Pay attention to the /wait switch. In some cases, it is simply irreplaceable. For example, you decided to use a BAT file to unpack the archive with the program and run this very program. The batch file will contain two commands - for unpacking and for launching. Since the teams launching BAT files will be executed almost simultaneously, the archive will not have time to unpack and there will be nothing to run. Therefore there will be an error. In this case, the key will come to the rescue /wait:

Thus, the system will first perform the first action, wait for it to complete, and only then proceed to the second. If you need to wait a specific period of time, it is easier to use a console utility. In the right place in the BAT file, write the following command (the number is the number of seconds):

start Sleep.exe 15

You can do a lot with keys. It is possible to install applications. To do this, several keys are used depending on the type of installer used to install the program on the computer:

/S /s /q /silent and a number of others

In some cases it can be very convenient. Avast Antivirus has the option quiet installation in the corporate version. The free (home) version supposedly does not have a silent installation. However, if you know how the InstallShield installer works, you will understand that this is a canard, since this installer itself supports the /S silent installation switch. This means that all products made on its basis do the same. And Avast is no exception. Just create a file with the contents in the folder with Avast's BAT

start avast.exe /S exit

you launch it and the program is installed on your computer with virtually no input from you. This way you can write a whole list of programs for silent installation and save time, for example, on reinstalling the system. In the article you can get more detailed information by keys.

There are other options for managing programs using BAT files. You can start a program by telling it to open a file at startup. I use this method when developing websites. It’s very convenient when your entire toolkit opens the necessary documents and folders with the click of just one button:

rem connection to ftp server start /min D:\FileZilla\FileZilla.exe "ftp://login:password@server" rem opening index.php in Firefox start C:\"program files"\"mozilla firefox"\firefox.exe "http://localhost/site_folder/index.php" rem opening start.html in a text editor start /min C:\"Program Files"\text_editor.exe "E:\server\site_folder\index.html" rem opening the folder with site files start /min E:\server\site_folder rem console exit exit

I note that all the techniques described above can be used in various combinations and combinations.

start /min /wait program.exe /m /S start C:\Directory\program2.exe "C:\Files\file.odt" exit

But it is important to remember: everything related to the execution of the program launched in the batch file is written with it on the same line.

start C:\"program files"\"mozilla firefox"\firefox.exe "http://localhost/site_folder/index.php"

As an epilogue, I will offer for your review the converter of BAT files into applications in the .exe format - . A BAT file is not always aesthetically pleasing, but with the help of a converter you can pack a batch file into an exe file, decorating it with any icon of your choice.

I came across another BAT to EXE converter, you can consider it as an alternative to the previous program: Advanced Bat To Exe Converter

Windows bat files are in a convenient way performing various tasks on a PC, which is actively used by computer experts. They allow you to automate daily tasks, reduce their execution time and turn a complex process into something feasible for the average user. This article introduces the basic features batch files and recommendations for writing them yourself.

Automation made easy

How to create a bat file? To do this you need to do the following:

  1. In any text editor, for example, Notepad or WordPad, create a text document.
  2. Write your commands in it, starting with @echo , and then (each time on a new line) title [name of the batch script], echo [message that will be displayed on the screen] and pause.
  3. Save the text in an electronic document with the .bat extension (for example, test.bat).
  4. To start, double click on the newly created batch file.
  5. To edit it, you need to click on it right click mouse and select “Change” from the context menu.

The raw file will look something like this:

title This is your first bat file script!

echo Welcome to the script batch processing!

We will discuss bat file commands and their use in more detail below.

Step 1: Create a software script

Let's assume that a user often has problems with the Network. He constantly uses the command line, typing ipconfig and pinging Google to troubleshoot network problems. After a while, the user realizes that it would be much more effective if he wrote a simple bat file, wrote it to his USB drive and ran it on the computers he diagnoses.

Creating a new text document

A batch file makes it easy to perform repetitive tasks on your computer using a command line Windows strings. Below is an example of a script responsible for displaying some text on the screen. Before creating a bat file, you should right-click on an empty space in the directory and select “Create”, and then “Text Document”.

Adding code

Double-clicking this new text document will open your default text editor. You can copy and paste the example code above into a text entry.

Preservation

The above script displays the text “Welcome to the Batch Processing Script!” on the screen. Electronic document must be recorded by selecting the menu item text editor“File”, “Save As”, and then specify the desired bat file name. It should be completed with a .bat extension (for example, welcome.bat) and click OK. To display the Cyrillic alphabet correctly, in some cases you should make sure that making the right choice encodings. For example, when using a Russified console Windows systems The NT document must be saved in the CP866. Now you should double click on the bat file shortcut to activate it.

But the following message will appear on the screen:

"Welcome to the batch script! Press any key to continue..."

If the bat file does not start, users recommend going to the registry and deleting the key:

"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.BAT\UserChoice."

Don't think that's all that batch scripts can do. Script parameters are modified versions of command line commands, so the user is limited only by their capabilities. And they are quite extensive.

Step 2: Get to Know Some Commands

If a PC user is familiar with how to execute DOS console commands, then he will be a master at creating software scripts because they are the same language. The lines in the bat files will tell the cmd.exe interpreter everything that is required of it. This saves time and effort. In addition, it is possible to set some logic (for example, simple loops, conditional instructions, etc., which are conceptually similar to procedural programming).

Built-in Commands

1. @echo is a bat file command that will allow you to see the script running on the command line. It is used to view the progress of production code. If the batch file has any problems, then this command will allow you to quickly localize problems. Adding off makes it possible to quickly terminate code execution, avoiding output unnecessary information to the screen.

2. Title provides the same functionality as a tag in HTML, i.e. creates a header for the batch script in the command line window.</p><p>3. Call calls one bat file from another or a subroutine within one script. For example, the power function calculates the power %2 of %1:</p><p>if %counter% gtr 1 (</p><p>set /a counter-=1</p><p>endlocal & set result=%prod%</p><p><img src='https://i2.wp.com/syl.ru/misc/i/ai/324915/1862019.jpg' width="100%" loading=lazy loading=lazy></p><p>4. Cls cleans <a href="https://gamevid.ru/en/reviews/komandnaya-stroka-v-rezhime-administratora-kak-otkryt-komandnuyu/">command line</a>. Used to ensure that previous output of extraneous code does not interfere with viewing the progress of the current script.</p><p>5. Color sets the font and background color. For example, the command color f9 specifies white letters on a blue background. A command without a parameter restores default settings.</p><p>6. Echo is used to display information, as well as to enable (echo on) or disable (echo off) such output. For example, the echo command. displays <a href="https://gamevid.ru/en/instructions/temy-dlya-bootstrap-4-perenos-kolonok-na-novuyu-stroku/">new line</a> without a dot, but echo . - point. Without parameters, the command displays information about its current status - echo on or echo off.</p><p>7. Rem provides the same functionality as a tag<! в HTML. Такая строка не является частью выполняемого кода. Вместо этого она служит для пояснения и предоставления информации о нем.</p><p>8. Pause allows you to interrupt the execution of commands in the bat file. This makes it possible to read executed lines before continuing the program. In this case, the message “To continue, press any key...” is displayed on the screen.</p><p>9. Set allows you to view or set environment variables. With the /p switch, the command prompts the user for input and saves it. With the /a parameter, it allows you to perform simple <a href="https://gamevid.ru/en/reviews/operacii-s-peremennymi-php-operatory-arifmeticheskie-operacii-v/">arithmetic operations</a>, also assigning their result to a variable. When performing string operations, there should be no spaces either before or after the equals sign. For example, the set command displays a list of environment variables, set HOME displays the values ​​of arguments starting with “HOME,” and set /p input=enter an integer: prompts for an integer and assigns it to the corresponding variable.</p><p>10. Start "" [website] will launch the specified website in your default web browser.</p><p>11. If is used to check a certain condition. If it is true, then the next command is executed. There are 3 types of conditions:</p><ul><li>ERRORLEVEL number - checks the completion code of the last executed instruction to see if it matches or exceeds the specified number. In this case, 0 means <a href="https://gamevid.ru/en/repair/kak-sozdavat-komandy-i-funkcii-v-powershell-vyzyvat-ih-i-peredavat/">successful completion</a> task, and any other number, usually positive, reports an error. For example, you can use nested commands to pinpoint the exit code: if errorlevel 3 if not errorlevel 4 echo error #3 occurred.</li><li>Line1 == line2 - checking whether two strings match. For example, if there is no external parameter, the if "%1"= ="" goto ERROR command will transfer control to the ERROR label.</li><li>EXIST name - checking the existence of a file with <a href="https://gamevid.ru/en/reviews/reshenie-ne-udaetsya-naiti-fail-proverte-pravilno-li-ukazano-imya-i/">specified name</a>. For example, if not exist A:\program.exe COPY C:\PROJECTS\program.exe A: copies program.exe to drive A if it is not there.</li> </ul><p>12. Else must be on the same line as the If command. Indicates that the next instruction must be executed if the expression evaluates to false.</p><p><img src='https://i1.wp.com/syl.ru/misc/i/ai/324915/1862021.jpg' width="100%" loading=lazy loading=lazy></p><p>13. For is used to repeat certain actions on each member of a list. Has the format for %%argument in (list) do command. The argument can be any letter from A to Z. The list is a sequence of strings separated by spaces or commas. Wildcards can also be used. For example:</p><ul><li>for %%d in (A, C, D) do DIR %%d - sequentially displays the directories of drives A, C and D;</li><li>for %%f in (*.TXT *.BAT *.DOC) do TYPE %%f - prints the contents of all .txt-, .bat- and .doc-files in the current directory;</li><li>for %%P in (%PATH%) do if exist %%P\*.BAT COPY %%P\*.BAT C:\BAT - copies all batch files that exist in all directories of the search route to the C:\ folder WAT.</li> </ul><p>14. A colon (:) before a word forms a link from it, which allows you to skip part of the program code or go back. Used with the Call and Goto commands, indicating from which point the execution of the bat file should continue, for example, when a certain condition is met:</p><p>15. Variables:</p><ul><li>%%a represents each file in the folder;</li><li>%CD% - current directory;</li><li>%DATE% - system date, the format of which depends on the localization;</li><li>%TIME% - system time in the form HH:MM:SS.mm.;</li><li>%RANDOM% - generated pseudo-random number in the range from 0 to 32767;</li><li>%ERRORLEVEL% - exit code returned by the last executed command or bat script.</li> </ul><p>You can extract part of a string contained in a variable, given its position and length, like this:</p><p>%[variable]:~[start],[length]%. For example, you can display a date in the format DD/MM/YYYY as YYYY-MM-DD like this: echo %DATE:~6.4%-%DATE:~3.2%-%DATE:~0.2%.</p><p>16. (". \") - root folder. When working with the console, before changing the file name, deleting it, etc., you must direct the command action to a specific directory. When using a batch file, just run it in any desired directory.</p><p>17. %digit - accepts parameter values, <a href="https://gamevid.ru/en/reviews/windows-10-peredaet-vse-dannye-polzovatelya-kak-prosmotret-diagnosticheskie/">transmitted by the user</a> to a bat file. Can be separated by spaces, commas or colons. A "digit" is a number between 0 and 9. For example, %0 takes the value of the current command. %1 matches the first parameter, etc.</p><p>18. Shift - command used to shift input parameters by one position. Used when external arguments are passed to the batch file. For example, the following bat file copies the files specified as parameters on the command line to drive D:</p><p>if not (%1)==() goto next</p><p>In addition, you can perform the following manipulations with the arguments:</p><ul><li>%~ - remove surrounding quotes;</li><li>%~f - expand the parameter to the full path name along with the drive name;</li><li>%~d - show disk name;</li><li>%~p - display only the path;</li><li>%~n - select only the file name from the parameter;</li><li>%~x - leave only the extension;</li><li>%~s - convert the path to a representation with short names;</li><li>%~a - extract file attributes;</li><li>%~t - display the date and time of creation;</li><li>%~z - display file size;</li><li>%~$PATH: - searches the directories listed in <a href="https://gamevid.ru/en/reviews/peremennye-v-php-kak-vyvesti-znacheniya-vseh-peremennyh-okruzheniya-v-windows/">environment variable</a> PATH, and expands the parameter to the first matching fully qualified name found, or returns an empty string on failure.</li> </ul><p><img src='https://i2.wp.com/syl.ru/misc/i/ai/324915/1862020.jpg' width="100%" loading=lazy loading=lazy></p><h2>Wildcards</h2><p>Many commands accept filename patterns - characters that allow you to match a group of filenames. Wildcards include:</p><ul><li>* (asterisk) - denotes any sequence of characters;</li><li>? (question mark) - replaces one (or 0) character other than a period (.).</li> </ul><p>For example, the dir *.txt command displays a list of txt files, and dir ???.txt displays a list <a href="https://gamevid.ru/en/news/kak-vosstanovit-kontekstnoe-menyu-sozdat-vosstanovlenie-v-kontekstnom/">text documents</a>, whose name length does not exceed 3 letters.</p><h2>Functions</h2><p>Like subroutines, they are emulated using the call, setlocal, endlocal, and label commands. The following example demonstrates the possibility of defining a variable in which the result is stored on the call line:</p><p>call:say result=world</p><p><img src='https://i0.wp.com/syl.ru/misc/i/ai/324915/1862022.jpg' width="100%" loading=lazy loading=lazy></p><h2>Computations</h2><p>In bat files, you can perform simple arithmetic operations on 32-bit integers and bits using the set /a command. The maximum supported number is 2^31-1 = 2147483647, and the minimum is -(2^31) = -2147483648. The syntax is reminiscent of the C programming language. Arithmetic operators include: *, /, %, +, -. In the bat file, % (the remainder of an integer division) should be entered as “%%”.</p><p>Binary number operators interpret the number as a 32-bit sequence. These include: ~ (bitwise NOT or complement), & (AND), | (OR), ^ (exclusive OR),<< (сдвиг влево), >> (shift right). <a href="https://gamevid.ru/en/reviews/kak-oboznachaetsya-i-v-c-operatory-otnosheniya-i-logicheskie-operatory/">Logical operator</a> denial is! (Exclamation point). It changes 0 to 1 and a non-zero value to 0. The combination operator is (comma), which allows you to perform more operations in one <a href="https://gamevid.ru/en/reviews/izmenenie-path-windows-komanda-set---rabota-s-peremennymi-sredy-windows-chto-interesnogo/">set command</a>. The combined assignment operators += and -= in the expressions a+=b and a-=and correspond to the expressions a=a+b and a=a-b. *=, %=, /=, &=, |=, ^=, >>=, work the same way.<<=. Приоритет операторов следующий:</p><p>(); %+-*/; >>, <<; &; ^; |; =, %=, *=, /=, +=, -=, &=, ^=, |=, <<=, >>=; ,</p><p>Literals can be entered as decimal, hexadecimal (with leading 0x), and octal numbers (with leading zero). For example, set /a n1=0xffff assigns n1 a hexadecimal value.</p><h2>External commands</h2><ul><li>Exit is used to exit the DOS console or (with the /b option) only the current bat file or routine.</li><li>Ipconfig is a classic console command that displays network information. It includes MAC and IP addresses, and subnet masks.</li><li>Ping pings an IP address, sending data packets to it to estimate its distance and latency (response). Also used to set a pause. For example, the command ping 127.0.01 -n 6 pauses code execution for 5 seconds.</li> </ul><p>The library of commands in bat files is huge. Luckily, there are many pages on the web that list them all, along with batch script variables.</p><p><img src='https://i2.wp.com/syl.ru/misc/i/ai/324915/1862017.jpg' width="100%" loading=lazy loading=lazy></p><h2>Step 3: Write and run the bat file</h2><p>The following script will make your daily online activity much easier. What if you want to instantly open all your favorite news sites? Since scripts use console commands, you can create a script that opens each news feed in a single browser window.</p><p>Next, you should repeat the process of creating a bat file, starting with an empty text document. To do this, you need to right-click on an empty space in any folder and select “New”, and then “Text Document”. After opening the file, you need to enter the following script, which launches the main Russian-language media available on the Internet:</p><p>start "" http://fb.ru</p><p>start "" http://www.novayagazeta.ru</p><p>start "" http://echo.msk.ru</p><p>start "" http://www.kommersant.ru</p><p>start "" http://www.ng.ru</p><p>start "" http://meduza.io</p><p>start "" https://news.google.com/news/?ned=ru_ru&hl=ru</p><p>This script contains the start “” commands, which open several tabs. You can replace the suggested links with any others of your choice. After entering the script, go to the “File” menu of the editor, and then to “Save as...” and save the document with the .bat extension, changing the “File type” parameter to “All files” (*. *).</p><p>After saving, to run the script, just double-click on it. Web pages will instantly begin loading. If you wish, you can place this file on your desktop. This will allow you to instantly access all your favorite sites.</p><h2>Organizer</h2><p>If you download several files a day, then soon hundreds of them will accumulate in the “Downloads” folder. You can create a script that will organize them by type. Just place the .bat file with the program in the folder with unorganized data and double-click to run:</p><p>rem Every file in the folder</p><p>for %%a in (".\*") do (</p><p>rem check for the presence of an extension and non-belonging to this script</p><p>if "%%~xa" NEQ "" if "%%~dpxa" NEQ "%~dpx0" (</p><p>rem check for the presence of a folder for each extension, and if it is not there, then create it</p><p>if not exist "%%~xa" mkdir "%%~xa"</p><p>rem move file to folder</p><p>move "%%a" "%%~dpa%%~xa\"</p><p>As a result, files in the “Downloads” directory are sorted into folders whose names correspond to their extension. It is so simple. This batch script works with any type of data, be it a document, video or audio. Even if the PC does not support them, the script will still create a folder with the appropriate label. If there is already a JPG or PNG directory, the program will simply move files with this extension there.</p><p>This is a simple demonstration of what batch scripts can do. Whenever a simple task needs to be done over and over again, be it organizing files, opening multiple web pages, bulk renaming, or making copies of important documents, a batch script can help you get the tedious job done in a couple of clicks.</p> <p>Greetings! Today I decided to tell you about bat files, or batch files, as they are simply called. I assume that the use of bat files will be useful for every computer user, will expand capabilities and simplify the performance of many tasks.</p> <h2>What is bat and why is it needed?</h2> <p>Bat is a file extension (bat). Surely many users know that each file has its own extension. This is the last line after the period in the title. It is this “tail” that the system needs to identify as music, video, image or any other. You can even experiment. Take any image and rename it along with the extension. Windows will immediately notify you that you are changing the extension, and the file may not be detected by the system. Agree with the request and you will see that your picture is no longer displayed as an image. If you rename it as before, everything will be restored again. If extensions are not visible to you, you need to activate this function in Explorer, in the “View” tab.</p> <p>For Windows, bat is a file with instructions for certain actions that are contained in the file itself. An empty bat file will launch, but no actions will be performed. A batch file is a set of instructions for the Windows console.</p> <h2>How to create a bat file to run a program</h2> <p>To create a batch file, you need to launch a text editor, then save the file with the final name bat. If your editor does not have a saving function with such an extension, then you need to register it yourself. When we run such a file, a console will open and if there are no commands, it will close immediately.</p> <p>Now let's set the command to run the program. To do this, you need to open our created batch file in Notepad or another editor and enter the command.</p> <p><img src='https://i0.wp.com/softo-mir.ru/wp-content/uploads/2017/03/2-8.jpg' align="center" width="100%" loading=lazy loading=lazy></p> <p>Let's launch the browser as an example. You must first enter the Start command and after the space write Opera.</p> <p>It should look like this:</p> <p><b>Start Opera</b></p> <p><img src='https://i1.wp.com/softo-mir.ru/wp-content/uploads/2017/03/3-5.jpg' align="center" width="100%" loading=lazy loading=lazy></p> <p>This will work for programs known to the system, but if you launch software that is not known to the system, you will need to write the entire path to the program. For example, if you have ftp installed in the Program Files folder, then in order to start it you need to enter the command</p> <p><b>start filezilla</b></p> <p>And if the ftp client is installed in another folder, you will need to enter the entire path.</p> <p><img src='https://i1.wp.com/softo-mir.ru/wp-content/uploads/2017/03/4-3.jpg' align="center" width="100%" loading=lazy loading=lazy></p> <p>The scope of application of batch files is quite wide. You can enter a variety of commands into the configuration. You can find them out on the Internet. If you are interested in more detailed information on the commands, write in the comments and I will try to answer you. VBS works in a similar way. This is the same thing, only the commands are not executed through the console, and the commands are slightly different.</p> <p>This technology will help in performing various types of tasks, and in automatic mode. Some users even write viruses this way. To make it impossible to change the file configuration using a text editor, you need to convert the bat file to exe. This will help to make various auxiliary software that you can find on the Internet. For example, to convert bat to exe, the Bat to exe converter program will help.</p> <p>The bat function is very useful and sometimes necessary. Using it you can write entire programs with a narrow range of actions. The scope of application depends only on the knowledge of the commands and the ability to combine them. Therefore, use and expand your skills and ability to use a computer at the Super User level.</p> <script type="text/javascript"> <!-- var _acic={dataProvider:10};(function(){var e=document.createElement("script");e.type="text/javascript";e.async=true;e.src="https://www.acint.net/aci.js";var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t)})() //--> </script><br> <br> <script>document.write("<img style='display:none;' src='//counter.yadro.ru/hit;artfast_after?t44.1;r"+ escape(document.referrer)+((typeof(screen)=="undefined")?"": ";s"+screen.width+"*"+screen.height+"*"+(screen.colorDepth? screen.colorDepth:screen.pixelDepth))+";u"+escape(document.URL)+";h"+escape(document.title.substring(0,150))+ ";"+Math.random()+ "border='0' width='1' height='1' loading=lazy loading=lazy>");</script> </div> </article> <div class="post-meta"> <div class="post-rating"> <div class="post-rating__title">Article rating:</div> <div id="post-ratings-557" class="post-ratings" data-nonce="79f57c6f5f"><img id="rating_557_1" src="https://gamevid.ru/wp-content/plugins/wp-postratings/images/stars/rating_off.gif" alt="1 Star" title="1 Star" onmouseover="current_rating(557, 1, '1 Звезда');" onmouseout="ratings_off(0, 0, 0);" onclick="rate_post();" onkeypress="rate_post();" style="cursor: pointer; border: 0px;" / loading=lazy loading=lazy><img id="rating_557_2" src="https://gamevid.ru/wp-content/plugins/wp-postratings/images/stars/rating_off.gif" alt="2 Stars" title="2 Stars" onmouseover="current_rating(557, 2, '2 Звезды');" onmouseout="ratings_off(0, 0, 0);" onclick="rate_post();" onkeypress="rate_post();" style="cursor: pointer; border: 0px;" / loading=lazy loading=lazy><img id="rating_557_3" src="https://gamevid.ru/wp-content/plugins/wp-postratings/images/stars/rating_off.gif" alt="3 Stars" title="3 Stars" onmouseover="current_rating(557, 3, '3 Звезды');" onmouseout="ratings_off(0, 0, 0);" onclick="rate_post();" onkeypress="rate_post();" style="cursor: pointer; border: 0px;" / loading=lazy loading=lazy><img id="rating_557_4" src="https://gamevid.ru/wp-content/plugins/wp-postratings/images/stars/rating_off.gif" alt="4 Stars" title="4 Stars" onmouseover="current_rating(557, 4, '4 Звезды');" onmouseout="ratings_off(0, 0, 0);" onclick="rate_post();" onkeypress="rate_post();" style="cursor: pointer; border: 0px;" / loading=lazy loading=lazy><img id="rating_557_5" src="https://gamevid.ru/wp-content/plugins/wp-postratings/images/stars/rating_off.gif" alt="5 stars" title="5 stars" onmouseover="current_rating(557, 5, '5 Звезд');" onmouseout="ratings_off(0, 0, 0);" onclick="rate_post();" onkeypress="rate_post();" style="cursor: pointer; border: 0px;" / loading=lazy loading=lazy>(No ratings yet) <br /><span class="post-ratings-text" id="ratings_557_text"></span></div> <div id="post-ratings-557-loading" class="post-ratings-loading"> <img src="https://gamevid.ru/wp-content/plugins/wp-postratings/images/loading.gif" width="16" height="16" class="post-ratings-image" / loading=lazy loading=lazy>Loading...</div> </div> <div class="post-share"> <div class="post-share__title">Share with friends:</div> <script type="text/javascript" src="//yastatic.net/share2/share.js" charset="utf-8" async="async"></script> <div class="ya-share2" data-services="vkontakte,facebook,odnoklassniki,gplus,twitter" data-counter=""></div> </div> </div> </div> <div class="yarpp-related"> <div class="yarpp-related__title">Articles on a similar topic</div> <ul class="related"> <style> </style> <ul class="related-items"> <li><img src="/uploads/b2e8f4f45c510e6c3f58617c2679bd7b.jpg" width="150" height="95" / loading=lazy loading=lazy><a href="https://gamevid.ru/en/news/chto-delat-esli-ne-obnovlyaetsya-po-chto-delat-esli-android-ustroistvo-ne-obnovlyaetsya-pochemu-vash-te/">What to do if your Android device is not updated?</a></li> <li><img src="/uploads/f05b394bc6e08bca75e5d3e5cbd86258.jpg" width="150" height="95" / loading=lazy loading=lazy><a href="https://gamevid.ru/en/reviews/kak-ustanavlivat-mody-karty-tekstury-i-skiny-kak-ustanovit-mody-na/">How to install mods on minecraft How to install mods on a computer</a></li> <li><img src="/uploads/b810bb0707164b7574b4574bf21ff99b.jpg" width="150" height="95" / loading=lazy loading=lazy><a href="https://gamevid.ru/en/reviews/kak-vzyat-obeshchannyi-platezh-na-tele2-i-kakie-usloviya-etoi-opcii/">Promised payment Tele2 How to connect a trust payment on Tele2</a></li> <li><img src="/uploads/51f463eb063747b663434d3e9d262c13.jpg" width="150" height="95" / loading=lazy loading=lazy><a href="https://gamevid.ru/en/repair/kak-zaiti-v-iks-boks-registraciya-i-podklyuchenie-k-xbox-live-oformlenie-uch-tnoi/">Register and connect to Xbox Live</a></li> </ul> </ul> </div> <aside class="comments-block"> <div id="disqus_thread"> </div> </aside> </main> </div> </div> <footer class="footer"> <div class="footer-copy">© 2024 All rights reserved</div> <nav class="footer-nav"> <ul class="footer-nav__items"> <li class="menu-item menu-item-type-post_type menu-item-object-page"><a href="https://gamevid.ru/en/sitemap.xml">Site Map</a></li> </ul> </nav> </footer> <div class="modal-hidden"> <div class="search-modal"> <div class="modal_close arcticmodal-close">Close</div> <div class="search-title">Find on the website</div> <div class="search-form"> <form method="get" action="/"> <input type="text" value="" name="s" placeholder="Site search" class="search-form__field"> <input type="submit" value="" class="search-form__button search-open"> </form> </div> <div class="search-example">For example: <span>types of drywall</span></div> </div> </div> <script type="text/javascript"> function dem_ready(e) { "use strict"; var t, n = ".democracy", i = e(n), o = ".dem-screen", a = ".dem-add-answer-txt", s = e(".dem-loader").first(), d = {}; i.length && (d.opts = i.first().data("opts"), d.ajaxurl = d.opts.ajax_url, d.answMaxHeight = d.opts.answs_max_height, d.speed = parseInt(d.opts.anim_speed), d.lineAnimSpeed = parseInt(d.opts.line_anim_speed), setTimeout(function() { var t = i.find(o).filter(":visible"), n = function() { t.each(function() { d.setHeight(e(this), 1) }) }; t.demInitActions(1), e(window).on("resize.demsetheight", n), e(window).load(n), d.maxAnswLimit(); var a = e(".dem-cache-screens"); a.length > 0 && a.demCacheInit() }, 10), e.fn.demInitActions = function(t) { return this.each(function() { var n = e(this), i = "data-dem-act"; n.find("[" + i + "]").each(function() { e(this).attr("href", ""), e(this).click(function(t) { t.preventDefault(), e(this).blur().demDoAction(e(this).attr(i)) }) }); var o = !!n.find("input[type=radio][data-dem-act=vote]").first().length; o && n.find(".dem-vote-button").hide(), d.setAnswsMaxHeight(n), d.lineAnimSpeed && n.find(".dem-fill").each(function() { var t = e(this); setTimeout(function() { t.animate({ width: t.data("width") }, d.lineAnimSpeed) }, d.speed, "linear") }), d.setHeight(n, t), n.find("form").submit(function(t) { t.preventDefault(); var n = e(this).find('input[name="dem_act"]').val(); n && e(this).demDoAction(e(this).find('input[name="dem_act"]').val()) }) }) }, e.fn.demSetLoader = function() { var e = this; return s.length ? e.closest(o).append(s.clone().css("display", "table")) : t = setTimeout(function() { d.demLoadingDots(e) }, 50), this }, e.fn.demUnsetLoader = function() { return s.length ? this.closest(o).find(".dem-loader").remove() : clearTimeout(t), this }, e.fn.demAddAnswer = function() { var t = this.first(), n = t.closest(o), i = n.find("[type=checkbox]").length > 0, s = e('<input type="text" class="' + a.replace(/\./, "") + '" value="">'); if (n.find(".dem-vote-button").show(), n.find("[type=radio]").each(function() { e(this).click(function() { t.fadeIn(300), e(a).remove() }), "radio" == e(this)[0].type && (this.checked = !1) }), t.hide().parent("li").append(s), s.hide().fadeIn(300).focus(), i) { var d = n.find(a); e('<span class="dem-add-answer-close">×</span>').insertBefore(d).css("line-height", d.outerHeight() + "px").click(function() { var t = e(this).parent("li"); t.find("input").remove(), t.find("a").fadeIn(300), e(this).remove() }) } return !1 }, e.fn.demCollectAnsw = function() { var t = this.closest("form"), n = t.find("[type=checkbox],[type=radio],[type=text]"), i = t.find(a).val(), o = [], s = n.filter("[type=checkbox]:checked"); if (s.length > 0) s.each(function() { o.push(e(this).val()) }); else { var d = n.filter("[type=radio]:checked"); d.length && o.push(d.val()) } return i && o.push(i), o = o.join("~"), o ? o : "" }, e.fn.demDoAction = function(t) { var i = this.first(), a = i.closest(n), s = { dem_pid: a.data("opts").pid, dem_act: t, action: "dem_ajax" }; return "undefined" == typeof s.dem_pid ? (console.log("Poll id is not defined!"), !1) : "vote" != t || (s.answer_ids = i.demCollectAnsw(), s.answer_ids) ? "delVoted" != t || confirm(i.data("confirm-text")) ? "newAnswer" == t ? (i.demAddAnswer(), !1) : (i.demSetLoader(), e.post(d.ajaxurl, s, function(e) { i.demUnsetLoader(), i.closest(o).html(e).demInitActions() }), !1) : !1 : (d.demShake(i), !1) }, e.fn.demCacheShowNotice = function(e) { var t = this.first(), n = t.find(".dem-youarevote").first(); return "blockForVisitor" == e && (t.find(".dem-revote-button").remove(), n = t.find(".dem-only-users").first()), t.prepend(n.show()), setTimeout(function() { n.slideUp("slow") }, 1e4), this }, d.cacheSetAnswrs = function(t, n) { var i = n.split(/,/); if (t.hasClass("voted")) { var o = t.find(".dem-answers"), a = o.data("voted-class"), s = o.data("voted-txt"); e.each(i, function(n, i) { t.find('[data-aid="' + i + '"]').addClass(a).attr("title", function() { return s + e(this).attr("title") }) }), t.find(".dem-vote-link").remove() } else { var d = t.find("[data-aid]"), r = t.find(".dem-voted-button"); e.each(i, function(e, t) { d.filter('[data-aid="' + t + '"]').find("input").prop("checked", "checked") }), d.find("input").prop("disabled", "disabled"), t.find(".dem-vote-button").remove(), r.length ? r.show() : (t.find('input[value="vote"]').remove(), t.find(".dem-revote-button-wrap").show()) } }, e.fn.demCacheInit = function() { return this.each(function() { var t = e(this), i = t.prev(n); if (i.length || (i = t.closest(n)), !i.length) return void console.log("Main dem div not found"); var a = i.find(o).first(), s = i.data("opts").pid, r = Cookies.get("demPoll_" + s), c = "notVote" == r ? !0 : !1, f = !("undefined" == typeof r || c), l = t.find(o + "-cache.vote").html(), h = t.find(o + "-cache.voted").html(); if (l) { var u = f && h; if (a.html((u ? h : l) + "").removeClass("vote voted").addClass(u ? "voted" : "vote"), f && d.cacheSetAnswrs(a, r), a.demInitActions(1), !c && !f && 1 == t.data("opt_logs")) { var m, p = function() { clearTimeout(m) }, v = function() { m = setTimeout(function() { if (!i.hasClass("checkAnswDone")) { i.addClass("checkAnswDone"); var t = i.find(".dem-link").first(); t.demSetLoader(), e.post(d.ajaxurl, { dem_pid: i.data("opts").pid, dem_act: "getVotedIds", action: "dem_ajax" }, function(e) { t.demUnsetLoader(), e && (a.html(h), d.cacheSetAnswrs(a, e), a.demInitActions(), a.demCacheShowNotice(e)) }) } }, 700) }; i.hover(v, p), i.click(v) } } }) }, d.detectRealHeight = function(e) { var t = e.clone().css({ height: "auto" }).insertBefore(e), n = "border-box" == t.css("box-sizing") ? parseInt(t.css("height")) : t.height(); return t.remove(), n }, d.setHeight = function(t, n) { var i = d.detectRealHeight(t); n ? t.css({ height: i }) : t.css({ opacity: 0 }).animate({ height: i }, d.speed, function() { e(this).animate({ opacity: 1 }, 1.5 * d.speed) }) }, d.setAnswsMaxHeight = function(t) { if ("-1" !== d.answMaxHeight && "0" !== d.answMaxHeight && d.answMaxHeight) { var n = t.find(".dem-vote, .dem-answers").first(), i = parseInt(d.answMaxHeight); n.css({ "max-height": "none", "overflow-y": "visible" }); var o = "border-box" == n.css("box-sizing") ? parseInt(n.css("height")) : n.height(), a = o - i; if (a > 100) { n.css("position", "relative"); var s, r = e('<span class="dem__collapser"><span class="arr"></span></span>').appendTo(n), c = function() { r.addClass("expanded").removeClass("collapsed") }, f = function() { r.addClass("collapsed").removeClass("expanded") }; t.data("expanded") ? c() : (f(), n.height(i).css("overflow-y", "hidden")), r.hover(function() { t.data("expanded") || (s = setTimeout(function() { r.trigger("click") }, 1e3)) }, function() { clearTimeout(s) }), r.click(function() { if (clearTimeout(s), t.data("expanded")) f(), t.data("expanded", !1), t.height("auto"), n.stop().css("overflow-y", "hidden").animate({ height: i }, d.speed, function() { d.setHeight(t, !0) }); else { c(); var e = d.detectRealHeight(n); e += 7, t.data("expanded", !0), t.height("auto"), n.stop().animate({ height: e }, d.speed, function() { d.setHeight(t, !0), n.css("overflow-y", "visible") }) } }) } } }, d.maxAnswLimit = function() { i.on("change", "[type=checkbox]", function() { var t = e(this).closest(n).data("opts").max_answs, i = e(this).closest(o).find("[type=checkbox]"), a = i.filter(":checked").length; a >= t ? i.filter(":not(:checked)").each(function() { e(this).prop("disabled", "disabled").closest("li").addClass("dem-disabled") }) : i.each(function() { e(this).removeProp("disabled").closest("li").removeClass("dem-disabled") }) }) }, d.demShake = function(e) { var t = e.css("position"); for (t && "static" !== t || e.css("position", "relative"), t = 1; 2 >= t; t++) e.animate({ left: -10 }, 50).animate({ left: 10 }, 100).animate({ left: 0 }, 50) }, d.demLoadingDots = function(e) { var n = e, i = n.is("input"), o = i ? n.val() : n.html(); "..." === o.substring(o.length - 3) ? i ? n[0].value = o.substring(0, o.length - 3) : n[0].innerHTML = o.substring(0, o.length - 3) : i ? n[0].value += "." : n[0].innerHTML += ".", t = setTimeout(function() { d.demLoadingDots(n) }, 200) }) }! function(e) { if ("function" == typeof define && define.amd) define(e); else if ("object" == typeof exports) module.exports = e(); else { var t = window.Cookies, n = window.Cookies = e(); n.noConflict = function() { return window.Cookies = t, n } } }(function() { function e() { for (var e = 0, t = {}; e < arguments.length; e++) { var n = arguments[e]; for (var i in n) t[i] = n[i] } return t } function t(n) { function i(t, o, a) { var s; if ("undefined" != typeof document) { if (arguments.length > 1) { if (a = e({ path: "/" }, i.defaults, a), "number" == typeof a.expires) { var d = new Date; d.setMilliseconds(d.getMilliseconds() + 864e5 * a.expires), a.expires = d } try { s = JSON.stringify(o), /^[\{ \[]/.test(s) && (o = s) } catch (r) {} return o = n.write ? n.write(o, t) : encodeURIComponent(String(o)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g, decodeURIComponent), t = encodeURIComponent(String(t)), t = t.replace(/%(23|24|26|2B|5E|60|7C)/g, decodeURIComponent), t = t.replace(/[\(\)]/g, escape), document.cookie = [t, "=", o, a.expires && "; expires=" + a.expires.toUTCString(), a.path && "; path=" + a.path, a.domain && "; domain=" + a.domain, a.secure ? "; secure" : ""].join("") } t || (s = {}); for (var c = document.cookie ? document.cookie.split("; ") : [], f = /(%[0-9A-Z]{ 2} )+/g, l = 0; l < c.length; l++) { var h = c[l].split("="), u = h[0].replace(f, decodeURIComponent), m = h.slice(1).join("="); '"' === m.charAt(0) && (m = m.slice(1, -1)); try { if (m = n.read ? n.read(m, u) : n(m, u) || m.replace(f, decodeURIComponent), this.json) try { m = JSON.parse(m) } catch (r) {} if (t === u) { s = m; break } t || (s[u] = m) } catch (r) {} } return s } } return i.set = i, i.get = function(e) { return i(e) }, i.getJSON = function() { return i.apply({ json: !0 }, [].slice.call(arguments)) }, i.defaults = {}, i.remove = function(t, n) { i(t, "", e(n, { expires: -1 })) }, i.withConverter = t, i } return t(function() {}) }); var demjquerywait = setInterval(function() { "undefined" != typeof jQuery && (clearInterval(demjquerywait), jQuery(document).ready(dem_ready)) }, 50); </script> <script type='text/javascript' src='/wp-includes/js/comment-reply.min.js?ver=4.7.8'></script> <script type='text/javascript'> /* <![CDATA[ */ var tocplus = { "smooth_scroll": "1" }; /* ]]> */ </script> <script type='text/javascript' src='https://gamevid.ru/wp-content/plugins/table-of-contents-plus/front.min.js?ver=1509'></script> <script type='text/javascript' src='https://gamevid.ru/wp-content/plugins/wp-postratings/js/postratings-js.js?ver=1.84'></script> <script type='text/javascript' src='https://gamevid.ru/wp-content/plugins/disqus-comment-system/media/js/disqus.js?ver=4.7.8'></script> <script type='text/javascript' src='https://gamevid.ru/wp-content/plugins/disqus-comment-system/media/js/count.js?ver=4.7.8'></script> </div> <script type="text/javascript"> <!-- var _acic={dataProvider:10};(function(){var e=document.createElement("script");e.type="text/javascript";e.async=true;e.src="https://www.acint.net/aci.js";var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t)})() //--> </script><br> <br> </body> </html>