- Windows 10 fix bat
- [Fix] Windows Batch Files (.bat) do not run when double-clicked
- [Fix] .BAT files do not run when double-clicked
- Method 1: Use .BAT file association registry fix
- Method 2: Fix the .BAT file association manually
- Method 3: Make your own REG file to automate the steps listed in Method 2
- [Fix] Пакетные файлы Windows (.bat) не запускаются при двойном щелчке
- [Исправление] .BAT-файлы не запускаются при двойном щелчке
- Метод 1. Используйте исправление реестра ассоциации файлов .BAT
- Метод 2: Исправьте сопоставление файлов .BAT вручную
- Метод 3: Создайте свой собственный файл REG для автоматизации шагов, перечисленных в методе 2
- Один небольшой запрос: если вам понравился этот пост, поделитесь им?
- Windows 10 fix bat
- mbmccormick / win10fix_full.bat
Windows 10 fix bat
Сообщение отредактировал Rammsteiner — 23.08.19, 12:03
Минимальные системные требования
- Процессор: С частотой не менее 1 ГГц или SoC
- ОЗУ: 1 ГБ (для 32-разрядных систем) или 2 ГБ (для 64-разрядных систем)
- Место на жестком диске: 16 ГБ (для 32-разрядных систем) или 20 ГБ (для 64-разрядных систем), начиная с версии 1903 — 32 ГБ
- Видеокарта: DirectX версии 9 или выше с драйвером WDDM 1.0
- Дисплей: 800 x 600
Сообщение отредактировал Rammsteiner — 23.06.19, 13:04
Обновления, необходимые для резервирования Windows 10
Для Windows 7 SP1
KB3035583
KB2952664(-v13)
Для Windows 8.1
KB3035583 x64
KB2976978 x64
KB3035583 x86
KB2976978 x86
Сообщение отредактировал KOT-BE3DEXOD — 04.10.15, 12:43
Что делать если резервированное обновление не приходит
Как один из вариантов:
1) Переходим в папку C:\Windows\SoftwareDistribution\Download и удаляем там все имеющиеся файлы и папки
2) Запускаем командную строку, и прописываем в ней следующую команду wuauclt.exe /updatenow
В течении 5 минут после этого начнется скачивание всех необходимых файлов для обновления.
Процесс можно отслеживать:
Правой кнопкой мыши по значку ПУСК -> Система -> Центр обновления Windows
¤ regedit.exe — перейти в ветку HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\OSUpgrade (если ветка отсутствует – создать ее вручную)
Создать параметр типа DWORD (32-bit) с именем AllowOSUpgrade и значением 0x00000001
Заново открыть панель центра обновлений Windows и еще раз запустить процесс поиска обновлений.
¤ Обновить систему через Media Creation Tool
¤ Или следуем этой инструкции — Windows 10 (Пост Shoore #41928818)
Сообщение отредактировал KOT-BE3DEXOD — 05.10.15, 11:05
[Fix] Windows Batch Files (.bat) do not run when double-clicked
When you double-click a Windows batch file ( .bat ), one of the following symptoms may happen:
- The batch file opens a Command Prompt window but its commands doesn’t execute.
- Notepad or any other text editor opens (edit) the batch file contents.
This post tells you how to fix .bat file association so that Windows runs batch files correctly.
[Fix] .BAT files do not run when double-clicked
Windows Batch file ( .bat ) is a special file type using which you can run or automate a series of commands. The Command Prompt reads and interprets the batch file, and runs each command specified in the file.
It’s possible that the user has inadvertently associated .bat files with a text editor, or associated .bat files with cmd.exe , or tampered with the settings in the registry. Once you set a file association for .bat files using the Open with dialog or default programs, there is no way to revert to the default setting using the user interface. The only way to fix it is by changing the settings in the registry.
Follow these steps to fix the Windows Batch file association:
Method 1: Use .BAT file association registry fix
- Visit the Windows 10 file association fixes page, download the .bat file association fix. If you’re using an older Operating System such as Windows 7 or Windows 8, you can find the links to the fixes for those Operating Systems down below on that page.
- Unzip the archive and run the enclosed registry file
- Click Yes when you’re asked for a confirmation to continue
- Click OK.
Method 2: Fix the .BAT file association manually
Important: Before proceeding, create a System Restore point as a safety measure. Incorrect modification of the Windows registry can cause serious problems.
- Start the Registry Editor ( regedit.exe )
- Go to the following key:
- Set the (default) value data to batfile
- Go to the following key:
- In the right-pane, make sure that the (default) value data is not set. It should read as value not set . In case you see some other text there, then right-click the (default) value and choose Delete .
- Then, proceed to the following key:
- Double-click (default) and set its value data to:
- Go to the following branch:
The values present under one of its subkeys ( OpenWithList , OpenWithProgids and UserChoice ) may be causing the problem.
Method 3: Make your own REG file to automate the steps listed in Method 2
If you want to automate the steps listed in Method 2, use this method. The difference between Method 1 and Method 3 is that in Method 1 , every detail of the .bat file type registration is taken care of. Whereas Method 2 is somewhat surgical — that is, it checks for and removes overridden entries only.
- Open Notepad or your favorite text editor.
- Copy the following lines and paste it into Notepad
- Save the file with any name having the .reg extension, say fix_bat.reg
- Double-click fix_bat.reg to apply the configuration in the registry. Click Yes when prompted for confirmation.
That’s it! You’ve now fixed the batch file association settings. Batch files should now execute correctly when double-clicked.
[Fix] Пакетные файлы Windows (.bat) не запускаются при двойном щелчке
Когда вы дважды щелкаете командный файл Windows ( .bat ) может произойти один из следующих симптомов:
- Пакетный файл открывает окно командной строки, но его команды не выполняются.
- Блокнот или любой другой текстовый редактор открывает (редактирует) содержимое пакетного файла.
В этом сообщении рассказывается, как исправить ассоциацию файлов .bat, чтобы Windows правильно запускала пакетные файлы.
[Исправление] .BAT-файлы не запускаются при двойном щелчке
Пакетный файл Windows ( .bat ) — это особый тип файла, с помощью которого вы можете запускать или автоматизировать серия команд. Командная строка считывает и интерпретирует пакетный файл и запускает каждую команду, указанную в файле.
Возможно, пользователь случайно связал файлы .bat с текстовый редактор или связанные файлы .bat с cmd.exe , или измененные параметры в реестре. После установки ассоциации файлов для файлов .bat с помощью диалогового окна «Открыть с помощью» или программ по умолчанию невозможно будет вернуться к настройке по умолчанию с помощью пользовательского интерфейса. Единственный способ исправить это — изменить настройки в реестре.
Чтобы исправить ассоциацию файлов Windows Batch, выполните следующие действия:
Метод 1. Используйте исправление реестра ассоциации файлов .BAT
- Посетите страницу исправлений сопоставления файлов Windows 10, загрузите исправление сопоставления файлов .bat. Если вы используете более старую операционную систему, такую как Windows 7 или Windows 8, вы можете найти ссылки на исправления для этих операционных систем ниже на этой странице.
- Разархивируйте архив и запустите его. вложенный файл реестра
- Нажмите «Да», когда вас попросят подтвердить, чтобы продолжить.
- Нажмите «ОК».
Метод 2: Исправьте сопоставление файлов .BAT вручную
Важно: Прежде чем продолжить, создайте точку восстановления системы в качестве меры безопасности. Неправильное изменение реестра Windows может вызвать серьезные проблемы.
- Запустите редактор реестра ( regedit.exe )
- Перейдите к следующему ключу:
- Установите для данных значения (по умолчанию) значение batfile
- Перейдите к следующему ключу:
- на правой панели убедитесь, что данные значения (по умолчанию) не заданы. Он должен читаться как значение не установлено . Если вы видите там какой-либо другой текст, щелкните правой кнопкой мыши значение (по умолчанию) и выберите Удалить ..
- Затем перейдите к следующему ключу:
- Дважды щелкните (по умолчанию) и установите для его данных значение:
- Перейдите в следующую ветку:
Значения, представленные в одном из его подключей ( OpenWithList , OpenWithProgids и UserChoice ) могут вызывать проблему.
Метод 3: Создайте свой собственный файл REG для автоматизации шагов, перечисленных в методе 2
Если вы хотите автоматизировать шаги, перечисленные в методе 2, используйте этот метод. Разница между методом 1 и методом 3 заключается в том, что в методе 1 каждая деталь Зарегистрируется тип файла .bat . В то время как Метод 2 несколько хирургический, то есть он проверяет и удаляет только замещенные записи.
- Откройте Блокнот или ваш любимый текстовый редактор.
- Скопируйте следующие строки и вставьте их в Блокнот
- Сохраните файл с любым именем, имеющим расширение .reg , например, fix_bat.reg
- Дважды щелкните fix_bat.reg , чтобы применить конфигурацию в реестре. При появлении запроса на подтверждение нажмите «Да».
Вот и все! Вы исправили настройки ассоциации пакетных файлов. Пакетные файлы теперь должны выполняться правильно при двойном щелчке.
Один небольшой запрос: если вам понравился этот пост, поделитесь им?
Одна «крошечная» публикация от вас серьезно поможет развитию этого блога. Несколько замечательных предложений:
- Прикрепите!
- Поделитесь в свой любимый блог + Facebook, Reddit
- Напишите в Твиттере!
Так что большое спасибо за вашу поддержку, мой читатель. Это займет не более 10 секунд вашего времени. Кнопки «Поделиться» находятся прямо внизу. 🙂
Windows 10 fix bat
This is not a complete program. As of right now I have five of the eight different fixes done. This is going to change obviously but for now my program is not finished. Any setting changer past the first five, will either spit out a test message or crash the program.
This is a batch file I created because I needed an easy and effective way of cleaning up my Windows 10 setup. This is my first actual working program and I hope to create more in the future. (Probably not anymore batch files though)
I got a lot of inspiration from W4RH4WK to create this file. While PowerShell is really fun to program in I wanted something a little simpler (albeit less powerful) to easily change settings in Windows 10. I would highly recommend anyone wanting to learn more about PowerShell to check out his GitHub.
In the future, I would like to take this into the GUI realm using C++ or some other language to fully realize this program. I think it would be very beneficial for me to learn those kinds of languages as well as the old DOS language.
You can undo things if you mess up for most of the settings, so don’t worry about that.
In the future, I have no clue what Microsoft is planning with Windows 10 so be prepared if this program doesn’t work in the future.
I created this for me and those that aren’t really tech-savvy and like to have words and buttons to press.
How my program is set up
1. Uninstall Unwanted Apps
There is a big list full of Windows 10 programs that could be potentially uninstalled.
2. Reinstall All Apps
This reinstalls all Windows 10 apps that were uninstalled in the first setting changer.
3. Remove/Hide Cortana
This allows you to remove Cortana from Windows 10. This also allows you to reinstall Cortana if uninstalled/edited.
4. Disable Unwanted Services
This brings up a list of services that are potentially slowing down your computer.
5. Re-enable Disabled Services
This really does exactly what it says. It gives you the option to re-enable all services disabled in the previous setting or to choose what services you want re-enabled.
6-10 are not finished and everything is up in the air when it comes to these settings.
Just click on the file that ends with .bat. Boom! Good job you did it!
I have no clue if there are any yet because I’ve been the only one to use this program.
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.
In jurisdictions that recognize copyright laws, the author or authors of this software dedicate any and all copyright interest in the software to the public domain. We make this dedication for the benefit of the public at large and to the detriment of our heirs and successors. We intend this dedication to be an overt act of relinquishment in perpetuity of all present and future rights to this software under copyright law.
THE SOFTWARE IS PROVIDED «AS IS», WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
For more information, please refer to http://unlicense.org
© 2017 GitHub, Inc.
In small words, you can do whatever with my code. ^^^^
mbmccormick / win10fix_full.bat
@ echo off |
title Windows 10 Missing Icon Fixes |
goto foreward |
: foreward |
color 0b |
cls |
echo The methods inside this batch modify files and registry settings. |
echo While they are tested and tend to work, I take no responsibility for the use of this file. |
echo This batch is provided without warranty. Any damage caused is your own responsibility. |
echo . |
echo As well, batch files are almost always flagged by anti-virus, feel free to review the code if you’re unsure. |
echo . |
echo If you understand the above, and accept — press any key to continue. |
pause > NUL |
goto elevatecheck |
: elevatecheck |
color 0c |
cls |
echo Checking for Administrator elevation. |
echo . |
echo . |
openfiles > NUL 2 >& 1 |
if %errorlevel% == 0 ( |
echo Elevation found! Proceeding. |
goto vercheck |
) else ( |
echo You are not running as Administrator. |
echo This batch cannot do it’s job without elevation! |
echo . |
echo Right-click and select ^ ‘Run as Administrator ^ ‘ and try again. |
echo . |
echo Press any key to exit. |
pause > NUL |
exit |
) |
: vercheck |
color 0c |
cls |
echo Performing Pre-Checks. |
for /f » tokens=4-5 delims=. » %%i in (‘ver’) do set version = %%i . %%j |
if » %version% » == » 6.3 » set allow = 1 |
if » %version% » == » 6.1 » set allow = 1 |
if %allow% == 1 goto warning |
set allow = 0 |
echo . |
echo You did not pass the pre-requisites. |
echo If you’re running Windows 8, go install Windows 8.1 from the Store. |
echo . |
echo Press any key to exit. |
pause > NUL |
exit |
: warning |
color 0b |
cls |
echo Warning about qualifications. |
echo . |
echo . |
echo Just because your version checks out, doesn’t mean you’re eligible for the free upgrade! |
echo Notably, the following are not elibile for Windows 10 via Windows Update. |
echo . |
echo Windows 7 RTM |
echo Windows 8 |
echo Windows 8.1 RTM |
echo Windows RT |
echo Windows Phone 8.0 |
echo . |
echo Press any key to continue. |
pause > NUL |
goto menu |
: menu |
color 0b |
cls |
echo Main Menu |
echo . |
echo . |
echo 1 ^ ) Check Update Status |
echo 2 ^ ) Quick-Method #1 ^ [JC from answers.microsoft.com ^ ] |
echo 3 ^ ) Quick-Method #2 ^ [KevinStevens_845 from answers.microsoft.com ^ ] |
echo 4 ^ ) Long-Method #1 ^ [Yaqub K from answers.microsoft.com ^ ] |
echo 5 ^ ) EXIT |
echo . |
set /p mmchoice = Selection: |
if %mmchoice% == 1 goto upstatus |
if %mmchoice% == 2 goto qm1 |
if %mmchoice% == 3 goto qm2 |
if %mmchoice% == 4 goto lm1 |
if %mmchoice% == 5 exit |
goto error |
: error |
color 0C |
cls |
echo Main Menu — Error! |
echo . |
echo . |
echo You did not enter a valid entry. |
echo . |
echo Press any key to return to the main menu and try again. |
pause > NUL |
goto menu |
: upstatus |
cls |
echo Checking for appropriate update installation status. |
echo . |
echo . |
if » %version% » == » 6.3 » goto upstatus8 |
if » %version% » == » 6.1 » goto upstatus7 |
goto menu |
: upstatus8 |
echo Windows 8 ^ + detected. |
echo . |
set upcheck = 3035583 |
echo Checking for update KB %upcheck% . |
dism /online /get-packages | findstr %upcheck% > NUL |
if %errorlevel% == 0 ( |
echo Update KB %upcheck% is installed! |
set missupdate = 0 |
) else ( |
echo Update KB %upcheck% is missing! |
set missupdate = 1 |
) |
echo . |
set upcheck = 3035583 |
echo Checking for update KB %upcheck% . |
dism /online /get-packages | findstr %upcheck% > NUL |
if %errorlevel% == 0 ( |
echo Update KB %upcheck% is installed! |
) else ( |
echo Update KB %upcheck% is missing! |
set /a missupdate = %missupdate% + 1 > NUL |
) |
echo . |
echo . |
if %missupdate% == 0 ( |
echo You are not missing any updates, congratulations! |
) else ( |
echo You are missing %missupdate% update ^ (s ^ ). |
) |
echo Press any key to return to the main menu. |
pause > NUL |
goto menu |
: upstatus7 |
echo Windows 7 detected. |
echo . |
set upcheck = 3035583 |
echo Checking for update KB %upcheck% . |
dism /online /get-packages | findstr %upcheck% > NUL |
if %errorlevel% == 0 ( |
echo Update KB %upcheck% is installed! |
set missupdate = 0 |
) else ( |
echo Update KB %upcheck% is missing! |
set missupdate = 1 |
) |
echo . |
set upcheck = 2952664 |
echo Checking for update KB %upcheck% . |
dism /online /get-packages | findstr %upcheck% > NUL |
if %errorlevel% == 0 ( |
echo Update KB %upcheck% is installed! |
) else ( |
echo Update KB %upcheck% is missing! |
set /a missupdate = %missupdate% + 1 > NUL |
) |
echo . |
echo . |
if %missupdate% == 0 ( |
echo You are not missing any updates, congratulations! |
) else ( |
echo You are missing %missupdate% update ^ (s ^ ). |
) |
echo Press any key to return to the main menu. |
pause > NUL |
goto menu |
: qm1 |
cls |
echo Quick-Method #1 ^ [JC from answers.microsoft.com ^ ] |
echo . |
echo . |
echo Updating registry. |
reg add » HKLM\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\UpgradeExperienceIndicators » /v UpgEx /t REG_SZ /d Green /f |
echo Trying to launch notification tray application. |
%SystemRoot% \System32\GWX\GWX.exe /taskLaunch |
echo . |
echo This method is now complete — and is also instant! |
echo You should see the Windows 10 icon in your notification tray. |
echo If you do not, return to the menu and try another method. |
echo . |
echo Press any key to return to the main menu. |
pause > NUL |
goto menu |
: qm2 |
echo Quick-Method #2 ^ [KevinStevens_845 from answers.microsoft.com ^ ] |
echo . |
echo . |
echo Trying to launch GWX task. |
%SystemRoot% \System32\GWX\GWX.exe /taskLaunch |
echo Trying to refresh GWX config. |
%SystemRoot% \System32\GWX\GWXConfigManager.exe /RefreshConfig |
echo . |
echo This method is now complete — but it could take a few minutes. |
echo In approximately 10 minutes you should see the Windows 10 icon in your notification tray. |
echo If you do not, return to the menu and try another method. |
echo . |
echo Press any key to return to the main menu. |
pause > NUL |
goto menu |
: lm1 |
cls |
echo Long-Method #1 ^ [Yaqub K from answers.microsoft.com ^ ] |
echo . |
echo . |
echo This method can take anywhere from 10 minutes on. |
echo I’ve had this run up to 40 minutes during my tests. |
echo . |
echo This will loop for a while but please note. |
echo If you see the ^ » STATUS^ » as anything but ^ » RUNNING^ » , there is something wrong. |
echo If that happens, close the batch file and start over. It may take a few times. |
echo . |
echo Further, due to the way this script was originally written, you may have to re-launch this batch to continue. |
echo . |
echo If you understand the above, press any key to continue. |
pause > NUL |
color 0c |
cls |
echo Work has begun. |
REG QUERY » HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\UpgradeExperienceIndicators » /v UpgEx | findstr UpgEx |
if » %errorlevel% » == » 0 » goto RunGWX |
reg add » HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Appraiser » /v UtcOnetimeSend /t REG_DWORD /d 1 /f |
schtasks /run /TN » \Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser « |
echo THIS MAY CAUSE A LOOP — CHECK FOR RUNNING STATUS!! ! &echo THIS MAY CAUSE A LOOP — CHECK FOR RUNNING STATUS! ! ! &echo THIS MAY CAUSE A LOOP — CHECK FOR RUNNING STATUS! !! |
: CompatCheckRunning |
schtasks /query /TN » \Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser « |
schtasks /query /TN » \Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser » | findstr Ready |
if not » %errorlevel% » == » 0 » ping localhost > NUL & goto : CompatCheckRunning |
: RunGWX |
schtasks /run /TN » \Microsoft\Windows\Setup\gwx\refreshgwxconfig « |
color 0b |
cls |
echo . |
echo This method is now complete. |
echo Reports show that this could take up to an hour to show the icon. |
echo It is also recommended that you reboot your PC if it has not shown up after that hour wait. |
echo . |
echo If you do not see the notification tray icon, try another method. |
echo If you are using this method last, please wait in the Microsoft Answers forums for a new answer. |
echo . |
echo Press any key to return to the main menu. |
pause > NUL |
goto menu |
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.