Как поменять разрешение экрана через командную строку
Перейти к содержимому

Как поменять разрешение экрана через командную строку

  • автор:

Как изменить разрешение экрана с помощью скрипта командной строки в Windows 10

Вы можете изменить разрешение экрана вашего компьютера с помощью командной строки в Windows 10, вам просто нужен правильный инструмент, о котором мы расскажем ниже.

Хотя вы всегда можете изменить разрешение экрана с помощью параметров экрана, Windows 10 по умолчанию не содержит командной строки, эквивалентной изменению разрешения экрана с помощью командной строки или PowerShell.

Это функция, которая может пригодиться для быстрого изменения разрешения экрана для определенных приложений и игр, которые лучше всего работают при определенных разрешениях. Также использование инструмента командной строки позволяет автоматизировать процесс с помощью скрипта и даже планировщика заданий.

Однако, если вы хотите изменить разрешение монитора вашего компьютера с помощью командной строки, вы можете использовать программу QRes от Anders Kjersem. Она является очень крошечным, но рабочим и полезным инструментом, который не требует установки. При этом он специально был разработан для настройки разрешения дисплея через командную строку.

В этом руководстве вы узнаете, как выбрать другое разрешение экрана для вашего монитора в Windows 10 с помощью командной строки и специальной программы.

Как изменить разрешение экрана с помощью командной строки:

1) Загрузите программу QRes с этого сайта — https://www.softpedia.com/get/Multimedia/Video/Other-VIDEO-Tools/QRes.shtml.

2) Извлеките файл из архива QRes.zip в любую удобную папку.

3) Запустите командную строку и введите команду, указанную на скриншоте ниже (в начале идёт адрес до извлеченного файла). При этом /x:1689 /y:1050 измените на необходимое разрешение экрана. Ширины это x, а высота это y. Например, 1366 x 768, 1440 x 900, 1680 x 1050, 1920 x 1080, 2560 x 1440.

4) После выполнения этих действий экран изменится на указанное вами разрешение.

Как в Windows 10 изменить разрешение экрана с помощью скрипта:

1) Откройте блокнот

2) Скопируйте и вставьте специальную команду — %homepath%\Downloads\QRes\QRes.exe /x:1689 /y:1050.

3) В команде измените путь к Вашему файлу QRes.exe и введите необходимое разрешение.

4) Нажмите меню Файл.

5) Выберите опцию Сохранить как.

6) Введите название вашего будущего скрипта с расширением .bat.

После выполнения этих шагов дважды щелкните на это файл скрипта, и разрешение экрана должно измениться автоматически без необходимости проделывания других дополнительных шагов. Если вам необходимо постоянно менять разрешение экрана, рекомендуется создать другой пакетный файл с другими настройками разрешения.

Any way of changing Windows screen resolution via command line?

I am using Microsoft’s Live Mesh program to remotely access a PC running Windows 7, running on 2 screens: one with 1920×1080 and the other 1920×1200 resolution.

I am accessing them via an old laptop with 1024×1078 resolution. The result is such tiny icons/commands that it is difficult to try and change the screen resolution from 2 high-res displays to the single low res display.

It would be great if there was a command line way of doing this. Or perhaps there is way through live mesh to do it. Any ideas?

Ƭᴇcʜιᴇ007's user avatar

9 Answers 9

Austin Adams's user avatar

The nircmd freeware tool can do this.
To change the display to 1024 x 768 with a 24 bit color depth:

nircmd.exe setdisplay 1024 768 24

nircmd also has other very numerous functions.

harrymc's user avatar

I found a Windows Powershell script sample*, provided by Microsoft Technet, that is able to change the screen resolution.

The best way to invoke it, I found, was from a separate Powershell script, that looks like this:

(Note I had saved the Microsoft script as Set-ScreenResolution.ps1 )

Then from the command line or Start->Run you can invoke the second Powershell script, which I named Invoke-Set-ScreenResolution.ps1 like this (the -noexit param is good at first for debugging, but you may want to remove it later on depending on whether you want the command window to close):

I used a combination of Qres.exe and Sleep.exe (put these in your Windows folder) in startup batch files to change resolution among 2 users. The actual script is as follows:

(Whereas the low-res copy is Qres.exe /x:800 /y:600 )

If you want your icons to stay where you want them. read on.
You’ll need two more downloads:

Install Startup Delayer and place DesktopOK wherever you like, I used my ‘user’ folder. Organize your desktop, how you want it to be on every reboot.

In DesktopOK go to Options and tick "Restore by Windows Startup", right click on the newly made "Icon Layout" and click "Use this for: Restore at Windows Startup".
At this point you’ll need to also check "Start DesktopOK with windows". The later two options will be unchecked automatically by of Startup Delayer later on.

Now locate DesktopOK in Startup Delayer and right-click "Delay" it.

Now there’s only one thing left to do, make your startup batch file.

Of course you’ll need to put it in your startup folder, the reason the process is so extensive with the icons is because DesktopOK can’t handle the resolution switch, and wants to move icons while the resolution is being changed, so we needed to delay the registry startup, and this is the only way I found. I don’t dare claim this to be the best way, but I do claim it works, I found no other way, and I came up with the process myself. It gets around every aspect of the situation by replacing icons where they belong per-user.

Batch command to change the resolution of a computer

I want to write a command in a batch file which changes the resolution of a computer. I am using Windows XP.

I need to set the resolution as 1024*768.

5 Answers 5

I needed more options, so I developed ChangeScreenResolution.exe to change the screen resolution in a batch file.

Change screen resolution of all monitors to 800x600px

Change screen resolution of all monitors to 800x600px with refresh rate of 60Hz and 32bit color depth

Set resolution of display with index 1 to 800x600px

To list all available displays (and their indexes):

Aleksandar's user avatar

You can use either of the following two tools.

Using MiltiRes:

Using QRes:

I haven’t tried MultiRes, but note that Qres will only run on 32-bit machines.

DisplayChanger II from 12noon.com also works beautifully and is free for personal use.

DisplayChanger is designed to be called via command line or batch script, and has both 32-bit and 64-bit versions. It can also generate editable config files specifically for multi-monitor (or projector) setups. You manually set the displays up how you want, «create» a config for it, then call that configuration up at any time.

Как изменить разрешение экрана в Windows 11/10

Разрешение экрана (Display Resolution) в основном определяется как количество пикселей, распределенных по горизонтали и вертикали. Это одна из основных метрик компьютера, определяющая четкость текста и графики, отображаемых на экране рабочего стола. Хотя использование рекомендуемого (Recommended) значения всегда является лучшим вариантом, вы можете настроить свой монитор для лучшего разрешения (adjust your monitor for better resolution) , переключаясь с одного разрешения экрана на другое в соответствии с вашими предпочтениями в Windows 11/10 . В этой статье я буду обсуждать различные способы изменения разрешения экрана или дисплея (Screen or Display Resolution) в Windows 11/10.

Как изменить разрешение экрана (Display Resolution) в Windows 11/10

Вот три способа изменить разрешение экрана в Windows 11/10 :

  1. Используйте приложение «Параметры Windows»
  2. Используйте HRC — изменение разрешения с помощью горячих клавиш
  3. Измените разрешение экрана (Change Display Resolution) с помощью командной строки (Command Prompt) .
  4. Измените (Change) разрешение экрана с помощью скрипта QRes .

Давайте обсудим эти методы подробно!

1] Измените разрешение экрана (Change Screen Resolution) с помощью приложения « Настройки ». (Settings)

Windows 11

разрешение экрана виндовс 11

Процедура изменения разрешения экрана (Display Resolution) в Windows 11 выглядит следующим образом:

  1. Щелкните правой кнопкой мыши кнопку « Пуск (Start) » и выберите « Настройки (Settings) » .
  2. В окне « Настройки (Settings) » выберите « Система (System) » в списке слева.
  3. На правой панели нажмите « Дисплей (Display) » , чтобы открыть настройки « Дисплей ». (Display)
  4. Прокрутите (Scroll) немного вниз до раздела « Масштаб (Scale) и макет».
  5. Вы найдете возможность изменить разрешение экрана (Display) .
Windows 10

Один из самых распространенных способов изменить разрешение экрана (change screen resolution) — использовать приложение « Настройки (Settings) » в Windows 10 . Вы можете настроить некоторые параметры дисплея, чтобы выбрать нужное разрешение экрана. Выполните (Follow) следующие шаги, чтобы использовать этот метод:

Откройте приложение « Настройки (Settings) », нажав горячую клавишу Windows + X и выбрав параметр (Settings) «Настройки ».

Теперь нажмите « System > Display ».

В настройках дисплея (Display) прокрутите вниз до раздела « Масштаб и макет (Scale and Layout) ». Здесь вы увидите параметр « Разрешение экрана (Display resolution) ».

изменить разрешение экрана в Windows 10

Если вы хотите сохранить разрешение экрана, нажмите « Сохранить изменения (Keep Changes) ». В противном случае вы можете нажать на опцию « Вернуть (Revert) », а затем выбрать другое разрешение экрана.

Чтение (Read) : Разрешение экрана дисплея изменяется автоматически .

2] Использование смены разрешения горячих клавиш

HRC — HotKey Resolution Changer — это специальное программное обеспечение для изменения разрешения экрана в Windows 10 . Это бесплатно и поставляется в портативном пакете. Вы можете просто запустить его файл приложения и изменить разрешение экрана. Вы также можете изменить глубину цвета (color depth) и частоту обновления (refresh rate) через него. Хорошая часть этого программного обеспечения заключается в том, что оно позволяет настраивать горячие клавиши ( customize hotkeys) для переключения разрешения экрана на вашем ПК. Он также позволяет изменять разрешение для настройки нескольких мониторов. После запуска этого приложения вы можете легко получить к нему доступ из системного трея.

Давайте проверим шаги, чтобы использовать это программное обеспечение!

Как изменить разрешение экрана с помощью бесплатной программы HRC – HotKey Resolution Changer
  1. Загрузите это программное обеспечение с официального сайта funk.eu.
  2. Разархивируйте загруженную папку.
  3. Запустите файл HRC.exe , чтобы открыть его интерфейс.
  4. Выберите желаемое разрешение экрана из раскрывающегося меню, а также глубину цвета (color depth) и частоту обновления по (refresh rate) мере необходимости.
  5. Щелкните значок компьютера (computer icon) справа, чтобы переключиться на выбранное разрешение экрана.

4] Изменить разрешение экрана (Change Display Resolution) с помощью командной строки (Command Prompt)

Вам нужно будет использовать QRes или Windows Screen Mode Changer , которые вы можете скачать с sourceforge.net .

Загрузите его в подходящую папку, извлеките его содержимое, откройте командную строку в папке назначения и выполните следующую команду:

Это установит разрешение экрана на 1680×1050. Вам нужно изменить цифры в соответствии с вашими требованиями.

Читать (Read) . Не удается изменить разрешение экрана в Windows 10 .

3] Изменить разрешение экрана (Change Screen Resolution) с помощью скрипта (Script)

QRes , рассмотренный выше, может использоваться для изменения разрешения экрана, а также глубины цвета с помощью скрипта. Это бесплатное приложение с открытым исходным кодом и легкое приложение. Давайте посмотрим, как вы можете использовать его для изменения разрешения экрана с помощью скрипта.

Вам нужно будет открыть Блокнот (Notepad) на вашем ПК и ввести команду, подобную этой:

«C:QResQRes.exe» /x:1366 /y:768 .

Эта команда изменит разрешение экрана на 1366×768 .

В этой команде перейдите «C:QResQRes.exe» на путь, по которому вы распаковали архив QRes , и введите разрешение экрана вместо /x:1366 /y:768 .

При сохранении файла выберите « Все типы файлов» (All File Types) , а затем добавьте расширение .bat после имени файла.

Почему разрешение экрана (Display Resolution) меняется само по себе и что делать, чтобы избежать таких изменений?

В большинстве случаев сторонние программные продукты и игры меняют разрешение экрана. Хотя обычно это делается только на период запуска программного обеспечения, но иногда оно продлевается даже после закрытия программного обеспечения/игры и перезагрузки системы. В этой ситуации вам придется корректировать разрешение экрана вручную.

Каково естественное разрешение экрана (Display Resolution) Windows 11 (Windows 11) ?

Устройство с Windows 11 должно иметь минимальное разрешение экрана 720p или 1280 x 720. Помимо этого, конкретного стандарта не существует. Компьютеры и мониторы бывают разных марок и размеров. Вы можете выбрать в соответствии с вашими требованиями.

Обычно Windows 11 предлагает рекомендуемое разрешение экрана и помечает его как «Рекомендуемое». Вам рекомендуется использовать то же самое.

Должен ли я изменить масштаб отображения (Display Scale) для Windows 11 ?

Масштаб отображения (Display Scale) по умолчанию для Windows 11 установлен на 150%, и настоятельно рекомендуется не изменять его. Однако если внешнее программное обеспечение изменяет масштаб, вы можете вернуть его к рекомендуемому значению.

Надеюсь, эта статья помогла вам найти подходящий способ переключения разрешения экрана в Windows 11/10 .

How to change Display Resolution in Windows 11/10

Display Resolution is basically defined as the number of pixels spread horizontally and vertically. It is one of the prominent metrics in a computer and it determines text and graphics clarity shown on your desktop screen. While using the Recommended value is always the best option, you can adjust your monitor for better resolution by switching from one display resolution to another as per your preference in Windows 11/10. In this article, I will be discussing different methods to change the Screen or Display Resolution in Windows 11/10.

How to change Display Resolution in Windows 11/10

These are the three ways to change the screen resolution in Windows 11/10:

  1. Use Windows Settings app
  2. Use HRC – HotKey Resolution Changer
  3. Change Display Resolution using Command Prompt.
  4. Change screen resolution using a QRes script.

Let’s discuss these methods in detail!

1] Change Screen Resolution using Settings app

Windows 11

display resolution windows 11

The procedure to change the Display Resolution in Windows 11 is as follows:

  1. Right-click on the Start button and select Settings.
  2. In the Settings window, select System on the list on the left-hand side.
  3. In the right-pane, click on Display to open the Display setting.
  4. Scroll down a little to the Scale & layout section.
  5. You would find the option to change the Display resolution.
Windows 10

One of the most common ways to change screen resolution is using the Settings app in Windows 10. You can tweak some display settings to select switch to the desired screen resolution. Follow below steps to use this method:

Open Settings app by pressing Windows + X hotkey and selecting Settings option.

Now, click on System > Display option.

In the Display settings, scroll down to Scale and Layout section. Here, you will see a Display resolution option.

change Display Resolution in Windows 10

If you want to keep the screen resolution, click on the Keep Changes option. Else, you can tap on the Revert option and then choose a different screen resolution.

Read: Display Screen Resolution changes on its own automatically.

2] Using HotKey Resolution Changer

HRC – HotKey Resolution Changer is a dedicated software to change screen resolution in Windows 10. It is free and it comes in a portable package. You can simply run its application file and change screen resolution. You can also change color depth and refresh rate through it. The good part of this software is that it lets you customize hotkeys to switch screen resolution on your PC. It lets you modify resolution for multi-monitor setup too. Once you launch this application, you can easily access it from the system tray.

Let’s checkout the steps to use this software!

How to change screen resolution using free software called HRC – HotKey Resolution Changer
  1. Download this software from its official website funk.eu.
  2. Unzip the downloaded folder.
  3. Run HRC.exe file to open its interface.
  4. Select the desired screen resolution from the drop-down menu, and choose color depth and refresh rate as required.
  5. Click the computer icon present at the right to switch to the selected display resolution.

4] Change Display Resolution using Command Prompt

You will need to use QRes or Windows Screen Mode Changer, which you can download from sourceforge.net.

Download it to a suitable folder, extract its contents and open a command prompt in the destination folder, and run the following command:

This will set the display resolution to 1680×1050. You need to change the figures as per your requirements.

Read: Can’t change Screen Resolution in Windows 10.

3] Change Screen Resolution using Script

QRes, discussed above, can use to change screen resolution as well as color depth using a script. It is a free and open source plus a lightweight application. Let’s checkout how you can use it to change screen resolution using script.

You will need to open Notepad on your PC and enter a command similar to this:

«C:\QRes\QRes.exe» /x:1366 /y:768 .

This command will change your screen resolution to 1366×768.

In this command, change «C:\QRes\QRes.exe» to the path where you have extracted QRes archive, and, enter your screen resolution in place of /x:1366 /y:768 .

While saving file, select All File Types and then add .bat extension after the filename.

Why does Display Resolution change by itself and what can I do to avoid such changes?

In most cases, third-party software products and games change the screen resolution. While usually, this is done only for the period you run the software, but at times, it extends even after closing the software/game and rebooting the system. In this situation, you would have to correct the display resolution manually.

What is the natural Display Resolution of Windows 11?

A Windows 11 device must have a minimum display resolution of 720p or 1280 x 720. Beyond that, there isn’t a specific standard. Computers and monitors come in different brands and sizes. You can choose as per your requirements.

Usually, Windows 11 suggests a recommended display resolution and marks it as “Recommended.” You are advised to use the same.

Should I change the Display Scale for Windows 11?

The default Display Scale for Windows 11 has been set to 150% and it is highly recommended not to change it. However, it an external software changes the scale, you can change it back to the recommended value.

Hopefully, this article helped you find a suitable method to switch screen resolution in Windows 11/10.

Маргарита Успенская

About the author

Я инженер-программист с более чем 10-летним опытом работы на платформах Windows 11 и 10. Я сосредоточился на разработке и поддержке высококачественного программного обеспечения для Windows 7 и Windows 8. Я также работал над множеством других проектов, включая, помимо прочего, Chrome, Firefox, Xbox One и файлы.

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *