summaryrefslogtreecommitdiffstats
path: root/3-registry.bat
diff options
context:
space:
mode:
authorbreadcat2020-06-16 17:12:02 +0100
committerbreadcat2020-06-16 17:12:02 +0100
commiteb8f79b0f1e9dcf3486439072dc75bf29f2a04b8 (patch)
treea125f2fdc575e3d70f2e1c5d6a2bcd0afed3ef4a /3-registry.bat
parent6f8ac5aec06e724cbe28933ea52e4d46da944618 (diff)
downloadwin10-prep-eb8f79b0f1e9dcf3486439072dc75bf29f2a04b8.tar.gz
win10-prep-eb8f79b0f1e9dcf3486439072dc75bf29f2a04b8.tar.bz2
win10-prep-eb8f79b0f1e9dcf3486439072dc75bf29f2a04b8.zip
Use loop for multiple file extensions
Diffstat (limited to '3-registry.bat')
-rw-r--r--3-registry.bat16
1 files changed, 1 insertions, 15 deletions
diff --git a/3-registry.bat b/3-registry.bat
index 47e5732..ceb90c9 100644
--- a/3-registry.bat
+++ b/3-registry.bat
@@ -38,21 +38,7 @@ reg add "HKCU\Software\Classes\.jpg" /ve /t REG_SZ /d "PhotoViewer.FileAssoc.Tif
reg add "HKCU\Software\Classes\.png" /ve /t REG_SZ /d "PhotoViewer.FileAssoc.Tiff" /f
reg add "HKCU\Software\Classes\.tiff" /ve /t REG_SZ /d "PhotoViewer.FileAssoc.Tiff" /f
rem notepad file associations
-reg add "HKCR\.cfg" /ve /t REG_SZ /d "txtfile" /f
-reg add "HKCR\.conf" /ve /t REG_SZ /d "txtfile" /f
-reg add "HKCR\.cpp" /ve /t REG_SZ /d "txtfile" /f
-reg add "HKCR\.cue" /ve /t REG_SZ /d "txtfile" /f
-reg add "HKCR\.go" /ve /t REG_SZ /d "txtfile" /f
-reg add "HKCR\.json" /ve /t REG_SZ /d "txtfile" /f
-reg add "HKCR\.md" /ve /t REG_SZ /d "txtfile" /f
-reg add "HKCR\.nfo" /ve /t REG_SZ /d "txtfile" /f
-reg add "HKCR\.nfo-orig" /ve /t REG_SZ /d "txtfile" /f
-reg add "HKCR\.patch" /ve /t REG_SZ /d "txtfile" /f
-reg add "HKCR\.php" /ve /t REG_SZ /d "txtfile" /f
-reg add "HKCR\.sh" /ve /t REG_SZ /d "txtfile" /f
-reg add "HKCR\.srt" /ve /t REG_SZ /d "txtfile" /f
-reg add "HKCR\.toml" /ve /t REG_SZ /d "txtfile" /f
-reg add "HKCR\.yml" /ve /t REG_SZ /d "txtfile" /f
+for %%x in (cfg conf cpp cue go json md nfo nfo-orig patch php sh srt toml yml) do reg add "HKCR\.%%x" /ve /t REG_SZ /d "txtfile" /f
rem disable various services
reg add "HKLM\SYSTEM\CurrentControlSet\Services\AppMgmt" /v "Start" /t REG_DWORD /d "4" /f
reg add "HKLM\SYSTEM\CurrentControlSet\Services\CscService" /v "Start" /t REG_DWORD /d "4" /f