Launch options для windows

Steam Set Launch Options and Full List

Steam has the option available to set launch options which allow tweaking when Steam launches. This can be used to fix many solutions and also provide convenience to those who wish to open their client in a different way. We have listed down a number of different launch options along with their description. First, we will show you how to launch Steam using the launch options using the file “steam.exe”.

Please note that this guide is meant for advanced Steam users who know their way around commands. Newbies are advised to stay away from altering things they don’t know about.

How to set launch options:

We have added the ‘-offline’ launch option to help you understand the mechanics involved. You can replace ‘-offline’ with any other launch option you wish.

  1. Locate your Steam client. The default location is C:/Program Files (x86)/Steam.
  2. Create a shortcut of Steam in the same directory.
  3. Click ‘Properties’ and head over to the ‘General’ tab.
  4. In the ‘Target’ dialogue box, add ‘offline’ in the end. The final result looks like this “C:\Program Files (x86)\Steam\Steam.exe” -offline

  1. Open task manager and end all Steam processes like explained above.
  2. Re-launch Steam using the shortcut and click Go Offline by clicking Steam located on the top left side of the client.

There is also a way you can set launch options for any game.

  1. Select the Library tab present at top of the Steam client. Here all your installed games are listed.
  2. Right click on the game and select Properties from the list of options available.
  3. Navigate to the Generaltab and here will see a Set Launch Options button. Click it.
  4. A small new window will come forward with a dialogue box present. Enter the launch option you wish to apply and save changes. Now whenever you launch the game, it will launch keeping these options in mind.

Different launch options ( for steam.exe in windows)

-clearbeta

This option lets you opt out of beta participations. Beta participations allow you to get some content beforehand but it may contain some bugs and it is also updated regularly to fix them.

-console

This option enables the Steam debug console tab. It can help users debug the problem and fix it. It is mostly used by advanced users.

-complete_install_via_http

This options runs the installation completion over HTTP by default.

-ccsyntax

This spews details about the localized strings we load.

-debug_steamapi

Enables logging of Steam API functions

-developer

This function sets the developer variable in the client to “1”. It can also be used to launch the VGUI editor and the VGUI zoo by pressing the keys F6 and F7 respectively. It is also intended for developing skins.

-fs_log

This logs file system accesses.

-fs_target

It sets the target syntax.

-fs_logbins

This command logs the binaries we load during the operation.

-forceservice

This command forces the Steam client to run even if Steam has administrator privileges.

-gameoverlayinject

This command lets you set the method on how the GameOverlay is injected.

This lets you install a product from a specific path (such as “D” can be a path if D is the DVD-ROM present in the computer).

-installer_test

This changes installing a retail game to emit all files to install_validate instead of emitting to the Steam cache.

-language

This sets your Steam language to the one you specify in the such as German or English. You can write “german” in the language place in .

-login [password]

This logs into Steam using the specific Username and Password. This will only work is Steam is off.

-lognetapi

This logs all the P2P networking info into the file logs/netapi_log.txt.

-log_voice

This writes all the voice chat data into the logs/voice_log.txt.

-noasync

This disables the async files operations. Instead, it tells the client to use the synchronous ones instead.

-nocache

This starts Steam without its cache (it doesn’t access its cache folder). Note that Steam must off for this to work.

-noverifyfiles

This prevents the Steam client from verifying the integrity of files. This comes in handy when you are testing localization.

-no-dwrite

This forces the vgui to use GDI text even if there is a support for DWrite available.

-script

This runs a Steam script already stored in the Steam directory. All the scripts must be in a subdirectory of the main Steam’s folder. They are called test scripts. Steam must also be off for this to work.

-shutdown

This forcefully closes steam and shuts it down.

-silent

This helps suppress the dialogue box that opens automatically when you start Steam. This is mostly used when you have Steam set to auto-start when you turn on your computer.

Читайте также:  Windows 10 отключение плиток

-single_core

This forces Steam to run and consume your primary CPU only and leave the others vacant.

-tcp

This forces Steam’s connection backend to be via TCP.

-voice_quality

This sets the audio quality and range to [1,3].

-voicerelay

This command only allows “relay” connections for voice (testing).

-tenfoot

This starts Steam in the Big picture mode so it covers your entire screen.

Different launch options for games

These launch options work for almost all the games. They may not sometimes work with third party applications and nor they are always compatible with everyone present in the Steam store.

-con_enable 1

This enables the console so you can use it in-game

-console

This also enables the console in-game and opens it up when the game starts.

-high

This gives the game priority CPU usage so it runs more smoothly. However, this options also consumes a lot of processing power.

-useforcedmparms

This allows the usage of –noforcemspd and –noforcemaccel.

-noforcemaccel

This allows the use of Windows mouse acceleration settings.

-noforcemspd

This allows the use of Windows mouse speed settings.

-fullscreen

This starts the game in a full screen from the start.

-h

This forces it to start at the resolution set to value. This value is in pixels for example “-h 739”.

-w

This forces it to start at the resolution set to value. This value is in pixels for example “-w 1024”.

This places the borderless window along the horizontal axis of the screen. This is very useful if you are using multiple monitors. For example, you can use “-x 1921”. If you are using three monitors, it will place it on the middle screen.

This places the borderless window along the vertical axis of the screen. This is very useful if you are using multiple monitors. For example, you can use “-y 0”. This will place the game window on top of the monitor, over the task bar.

-autoconfig

This will help in restoring the video and audio configuration to their default settings for the current hardware which is detected. This will completely ignore any settings present in the .cfg files until this parameter is removed.

-override_vpk

This will force the Steam engine to search for custom game content which is placed inside the game’s installation directory instead of loading the default game files from the VPK files. However, do note that this feature cannot be used in matchmaking and is limited for single player only.

-enable_addons

This will force the Steam engine to search for whitelisted custom game content which is placed inside the game’s installation directory instead of loading the default game files from the VPK files. This can be used in matchmaking games. The whitelisted list includes many items such as HUD, icons, custom cursor images etc.

-nomousegrab

This enables the alt-tab function in some Linus devices where the game is running full screen and grabbing mouse won’t allow the players to use the alt-tab function while in-game.

-language

This changes the language of the game and the menus. You can place the name of the language in place of code. The command line will look something like “-language Italian”.

-nod3d9ex

This forcefully disables the Windows Aero DirectX extensions. This is used to enhance performance in some cases.

-nomicsettings

This stops the game from changing the microphone output values when the game launches. This is particularly useful for people who are using third party applications such as Skype where their microphone value will get forcefully maxed out when they run the game.

-nosound

This turns off the sound in-game.

-dx9

This will force the game to run on DirectX 9

-dx11

This will force the game to run on DirectX 11.

-gl

This forces the game to run on OpenGL. On Windows, the OpenGL DLC must be present in the system and should be installed for this feature to run.

-vulkan

This applies the Vulcan support.

-nogrammeramp

This will force the game to use the desktop color profile.

-32bit

This will force run the game on a 32 bit client as running on 64 bit is the default.

-antiaddiction_test

This adds an uptime clock so you can see how much time is passing by while you are playing. This is very useful for keeping track of minutes passed while in-game.

Запуск приложения по умолчанию для файла Launch the default app for a file

Важные API Important APIs

Узнайте, как запускать приложение по умолчанию для файла. Learn how to launch the default app for a file. Многим приложениям необходимо работать с файлами, которые они не могут обрабатывать самостоятельно. Many apps need to work with files that they can’t handle themselves. Например, почтовые приложения получают файлы разных типов, и им требуется способ запуска этих файлов в обработчиках по умолчанию. For example, e-mail apps receive a variety of file types and need a way to launch these files in their default handlers. Далее показано, как использовать API Windows.System.Launcher, чтобы запустить обработчик по умолчанию для файла, который приложение не может обработать самостоятельно. These steps show how to use the Windows.System.Launcher API to launch the default handler for a file that your app can’t handle itself.

Читайте также:  Os startfile python 3 linux

Получение объекта файла Get the file object

Если файл находится в известной папке, можно использовать свойства класса Windows.Storage.KnownFolders для получения StorageFolder и метод GetFileAsync для получения объекта StorageFile. If the file is in a known folder, you can use the properties of the Windows.Storage.KnownFolders class to get a StorageFolder and the GetFileAsync method to get the StorageFile object.

Запуск файла Launch the file

Windows предоставляет несколько вариантов для запуска обработчика файла по умолчанию. Windows provides several different options for launching the default handler for a file. Они описаны на диаграмме и в следующих разделах. These options are described in this chart and in the sections that follow.

Параметр Option Метод Method Описание Description
Запуск по умолчанию Default launch LaunchFileAsync(IStorageFile) LaunchFileAsync(IStorageFile) Запуск указанного файла с помощью обработчика по умолчанию. Launch the specified file with the default handler.
Запуск через пункт меню «Открыть с помощью» Open With launch LaunchFileAsync(IStorageFile, LauncherOptions) LaunchFileAsync(IStorageFile, LauncherOptions) Запуск указанного файла, позволяющий пользователю выбрать обработчик в диалоговом окне «Открыть с помощью». Launch the specified file letting the user pick the handler through the Open With dialog.
Запуск с помощью рекомендованного резервного приложения Launch with a recommended app fallback LaunchFileAsync(IStorageFile, LauncherOptions) LaunchFileAsync(IStorageFile, LauncherOptions) Запуск указанного файла с помощью обработчика по умолчанию. Launch the specified file with the default handler. Если в системе не установлен обработчик, следует порекомендовать пользователю приложение в Магазине. If no handler is installed on the system, recommend an app in the store to the user.
Запуск с использованием заданного представления оставшегося пространства Launch with a desired remaining view LaunchFileAsync(IStorageFile, LauncherOptions) (только для Windows) LaunchFileAsync(IStorageFile, LauncherOptions) (Windows-only) Запуск указанного файла с помощью обработчика по умолчанию. Launch the specified file with the default handler. Укажите значение параметра, позволяющее остаться на экране после запуска, и запросите конкретный размер окна. Specify a preference to stay on screen after the launch and request a specific window size. LauncherOptions.DesiredRemainingView не поддерживается на данном семействе устройств. LauncherOptions.DesiredRemainingView isn’t supported on the mobile device family.

Запуск по умолчанию Default launch

Чтобы запустить приложение по умолчанию, вызовите метод Windows.System.Launcher.LaunchFileAsync(IStorageFile). Call the Windows.System.Launcher.LaunchFileAsync(IStorageFile) method to launch the default app. В следующем примере используется метод Windows.Storage.StorageFolder.GetFileAsync для запуска файла изображения test.png, который включен в пакет приложения. This example uses the Windows.Storage.StorageFolder.GetFileAsync method to launch an image file, test.png, that is included in the app package.

Запуск через пункт меню «Открыть с помощью» Open With launch

Вызовите метод Windows.System.Launcher.LaunchFileAsync(IStorageFile, LauncherOptions) с заданным для параметра LauncherOptions.DisplayApplicationPicker значением true, чтобы запустить приложение, которое пользователь выбирает в диалоговом окне Открыть с помощью. Call the Windows.System.Launcher.LaunchFileAsync(IStorageFile, LauncherOptions) method with LauncherOptions.DisplayApplicationPicker set to true to launch the app that the user selects from the Open With dialog box.

Если пользователь хочет выбрать приложение для определенного файла, отличное от приложения по умолчанию, рекомендуется использовать диалоговое окно Открыть с помощью. We recommend that you use the Open With dialog box when the user may want to select an app other than the default for a particular file. Например, когда ваше приложение разрешает пользователю запускать файл изображения, по умолчанию наиболее вероятным обработчиком будет средство просмотра изображений. For example, if your app allows the user to launch an image file, the default handler will likely be a viewer app. Иногда пользователю нужно не просто посмотреть изображение, но и отредактировать его. In some cases, the user may want to edit the image instead of viewing it. В таком случае используйте параметр Открыть с помощью наряду с альтернативной командой на панели приложения AppBar или в контекстном меню, чтобы пользователь мог вызвать диалоговое окно Открыть с помощью и выбрать приложение для редактирования. Use the Open With option along with an alternative command in the AppBar or in a context menu to let the user bring up the Open With dialog and select the editor app in these types of scenarios.

Запуск с помощью рекомендованного резервного приложения Launch with a recommended app fallback

В некоторых случаях у пользователя может быть не установлено приложение для обработки запускаемого файла. In some cases the user may not have an app installed to handle the file that you are launching. Тогда по умолчанию Windows предоставит пользователю ссылку для поиска подходящего приложения в Магазине. By default, Windows will handle these cases by providing the user with a link to search for an appropriate app on the store. Если вы при этом хотите порекомендовать пользователю конкретное приложение, вы можете передать рекомендацию вместе с запускаемым файлом. If you would like to give the user a specific recommendation for which app to acquire in this scenario, you may do so by passing that recommendation along with the file that you are launching. Для этого вызовите метод Windows.System.Launcher.launchFileAsync(IStorageFile, LauncherOptions), указав в качестве значения параметра LauncherOptions.PreferredApplicationPackageFamilyName имя семейства пакета приложения Магазина, которое вы рекомендуете. To do this, call the Windows.System.Launcher.launchFileAsync(IStorageFile, LauncherOptions) method with LauncherOptions.PreferredApplicationPackageFamilyName set to the package family name of the app in the Store that you want to recommend. Затем задайте для параметра LauncherOptions.PreferredApplicationDisplayName имя этого приложения. Then, set the LauncherOptions.PreferredApplicationDisplayName to the name of that app. Windows будет использовать эту информацию, чтобы заменить общий параметр (поиск приложения в Магазине) конкретным параметром (приобретение рекомендованного приложения в Магазине). Windows will use this information to replace the general option to search for an app in the store with a specific option to acquire the recommended app from the Store.

Необходимо задать оба этих параметра, чтобы рекомендовать приложение. You must set both of these options to recommend an app. Настройка одного параметра без другого приведет к ошибке. Setting one without the other will result in a failure.

Запуск с использованием требуемого представления оставшегося пространства (только для Windows) Launch with a Desired Remaining View (Windows-only)

Исходные приложения, вызывающие LaunchFileAsync, могут запрашивать разрешение остаться на экране после запуска файла. Source apps that call LaunchFileAsync can request that they remain on screen after a file launch. По умолчанию Windows пытается поровну поделить все доступное пространство между исходным приложением и конечным приложением, обрабатывающим файл. By default, Windows attempts to share all available space equally between the source app and the target app that handles the file. Исходные приложения могут использовать свойство DesiredRemainingView, чтобы сообщить операционной системе, что для окна приложения требуется больше или меньше доступного пространства. Source apps can use the DesiredRemainingView property to indicate to the operating system that they prefer their app window to take up more or less of the available space. DesiredRemainingView также используется, чтобы сообщить системе, что исходному приложению не нужно оставаться на экране после запуска файла и что его пространство можно полностью занять конечным приложением. DesiredRemainingView can also be used to indicate that the source app does not need to remain on screen after the file launch and can be completely replaced by the target app. Это свойство указывает только предпочтительный размер окна для вызывающего приложения. This property only specifies the preferred window size of the calling app. Оно не задает условия для других приложений, которые могут находиться на экране в это же время. It doesn’t specify the behavior of other apps that may happen to also be on screen at the same time.

При определении конечного размера окна исходного приложения Windows учитывает несколько разных факторов, например, предпочтения исходного приложения, количество приложений на экране, ориентацию экрана и т. д. Windows takes into account multiple different factors when it determines the source app’s final window size, for example, the preference of the source app, the number of apps on screen, the screen orientation, and so on. Задав DesiredRemainingView, вы не гарантируете конкретного поведения окон для исходного приложения. By setting DesiredRemainingView, you aren’t guaranteed a specific windowing behavior for the source app.

**Семейство мобильных устройств: **лаунчероптионс. десиредремаинингвиев не поддерживается в семействе мобильных устройств. **Mobile device family: **LauncherOptions.DesiredRemainingView isn’t supported on the mobile device family.

Remarks Remarks

Ваше приложение не может выбрать запускаемое приложение. Your app can’t select the app that is launched. Пользователь сам определяет, какое приложение запустить. The user determines which app is launched. Пользователь может выбрать приложение универсальной платформы Windows (UWP) или классическое приложение для Windows. The user can select either a Universal Windows Platform (UWP) app or a Windows desktop app.

При запуске файла ваше приложение должно быть приложением переднего плана, то есть быть видимым пользователю. When launching a file, your app must be the foreground app, that is, it must be visible to the user. Это требование обеспечивает контроль пользователя над ситуацией. This requirement helps ensure that the user remains in control. Для соблюдения этого требования убедитесь, что все запуски файлов непосредственно связаны с пользовательским интерфейсом вашего приложения. To meet this requirement, make sure that you tie all file launches directly to the UI of your app. Чтобы запустить файл, пользователь, скорее всего, должен выполнить какое-либо действие. Most likely, the user must always take some action to initiate a file launch.

Нельзя запускать типы файлов, содержащие код или сценарий, если они автоматически выполняются операционной системой, например файлы EXE, MSI и JS. You can’t launch file types that contain code or script if they are executed automatically by the operating system, such as, .exe, .msi, and .js files. Это ограничение защищает пользователей от потенциально вредоносных файлов, которые могут внести изменения в операционную систему. This restriction protects users from potentially malicious files that could modify the operating system. Вы можете использовать этот метод для запуска файлов, содержащих сценарий, если они выполняются приложением, которое изолирует этот сценарий. К таким файлам, например, относятся файлы типа DOCX. You can use this method to launch file types that can contain script if they are executed by an app that isolates the script, such as, .docx files. Приложения, подобные Microsoft Word, не позволяют сценариям в DOCX-файлах изменять операционную систему. Apps like Microsoft Word keep the script in .docx files from modifying the operating system.

Если вы попытаетесь запустить файл ограниченного типа, запуск завершится ошибкой, и будет выполнен обратный вызов для ошибки. If you try to launch a restricted file type, the launch will fail and your error callback will be invoked. Если ваше приложение обрабатывает разные типы файлов и вы считаете такую ошибку вероятной, рекомендуется предоставить пользователю резервный вариант действий. If your app handles many different types of files and you expect that you will hit this error, we recommend that you provide a fallback experience to your user. Например, можно позволить пользователю сохранить файл на рабочем столе и открыть его с рабочего стола. For example, you could give the user an option to save the file to the desktop, and they could open it there.

Читайте также:  Xps viewer windows 10 не устанавливается
Оцените статью