{"id":3543,"date":"2020-08-27T18:25:12","date_gmt":"2020-08-27T09:25:12","guid":{"rendered":"\/blog\/?p=3543"},"modified":"2023-09-21T09:26:39","modified_gmt":"2023-09-21T00:26:39","slug":"%ec%9c%88%eb%8f%84%ec%9a%b0%ec%a6%88-%ed%8c%8c%ec%9d%bc%ed%99%95%ec%9e%a5%ec%9e%90%ec%99%80-%ed%94%84%eb%a1%9c%ea%b7%b8%eb%9e%a8%ec%9d%84-%ec%97%b0%ea%b2%b0%ed%95%98%eb%8a%94-%ec%8a%a4%ed%81%ac","status":"publish","type":"post","link":"https:\/\/hasu0707.duckdns.org\/blog\/?p=3543","title":{"rendered":"[\uc708\ub3c4\uc6b0\uc988] \ud30c\uc77c\ud655\uc7a5\uc790\uc640 \ud504\ub85c\uadf8\ub7a8\uc744 \uc5f0\uacb0\ud558\ub294 \uc2a4\ud06c\ub9bd\ud2b8"},"content":{"rendered":"\n<pre class=\"wp-block-syntaxhighlighter-code\">@ECHO OFF\nREM #########################################################################\nREM #\nREM # \ub808\uc9c0\uc2a4\ud2b8\ub9ac\ub97c \ud1b5\ud574 \ud655\uc7a5\uc790\uc640 \ud504\ub85c\uadf8\ub7a8\uc744 \uc5f0\uacb0\ud55c\ub2e4.\nREM #\nREM #########################################################################\nREM # UTF-8\ub85c \ucf54\ub4dc\ud398\uc774\uc9c0 \ubcc0\uacbd\nREM #########################################################################\nCHCP 65001\nCLS\n\nECHO #########################################################################\nECHO # \uc2dc\uc791\nECHO #########################################################################\nCALL :FUNC_DEL_MUSICPLAYER_EXT\nCALL :FUNC_SET_MUSICPLAYER_EXT\n\nCALL :FUNC_DEL_DOCUMENT_EXT\nCALL :FUNC_SET_DOCUMENT_EXT\n\nREM CALL :FUNC_DEL_PICTURE_EXT\nREM CALL :FUNC_SET_PICTURE_EXT\nPAUSE\nEXIT \/B %ERRORLEVEL%\n\n:FUNC_SET_MUSICPLAYER_EXT\n    ECHO #########################################################################\n    ECHO # \uc74c\uc545\ud50c\ub808\uc774\uc5b4 \ud655\uc7a5\uc790\ub97c \ub4f1\ub85d\ud55c\ub2e4.\n    ECHO #########################################################################\n    CALL :FUNC_ADD_EXT_HKCR aac     foobar2000 \"C:\\PortableApps\\foobar2000\\foobar2000.exe\"\n    CALL :FUNC_ADD_EXT_HKCR aiff    foobar2000 \"C:\\PortableApps\\foobar2000\\foobar2000.exe\"\n    CALL :FUNC_ADD_EXT_HKCR flac    foobar2000 \"C:\\PortableApps\\foobar2000\\foobar2000.exe\"\n    CALL :FUNC_ADD_EXT_HKCR mp3     foobar2000 \"C:\\PortableApps\\foobar2000\\foobar2000.exe\"\n    CALL :FUNC_ADD_EXT_HKCR ogg     foobar2000 \"C:\\PortableApps\\foobar2000\\foobar2000.exe\"\n    CALL :FUNC_ADD_EXT_HKCR pcm     foobar2000 \"C:\\PortableApps\\foobar2000\\foobar2000.exe\"\n    CALL :FUNC_ADD_EXT_HKCR wav     foobar2000 \"C:\\PortableApps\\foobar2000\\foobar2000.exe\"\n    CALL :FUNC_ADD_EXT_HKCR wma     foobar2000 \"C:\\PortableApps\\foobar2000\\foobar2000.exe\"\nEXIT \/B \/0\n\n:FUNC_SET_PICTURE_EXT\n    ECHO #########################################################################\n    ECHO # \uadf8\ub9bc \ubc0f \uc0ac\uc9c4 \ud655\uc7a5\uc790\ub97c \ub4f1\ub85d\ud55c\ub2e4.\n    ECHO #########################################################################\n    CALL :FUNC_ADD_EXT_HKCR arw     fsviewer \"C:\\PortableApps\\FastStoneImageViewer_Portable\\FSViewer.exe\"\n    CALL :FUNC_ADD_EXT_HKCR bmp     fsviewer \"C:\\PortableApps\\FastStoneImageViewer_Portable\\FSViewer.exe\"\n    CALL :FUNC_ADD_EXT_HKCR cr2     fsviewer \"C:\\PortableApps\\FastStoneImageViewer_Portable\\FSViewer.exe\"\n    CALL :FUNC_ADD_EXT_HKCR crw     fsviewer \"C:\\PortableApps\\FastStoneImageViewer_Portable\\FSViewer.exe\"\n    CALL :FUNC_ADD_EXT_HKCR dng     fsviewer \"C:\\PortableApps\\FastStoneImageViewer_Portable\\FSViewer.exe\"\n    CALL :FUNC_ADD_EXT_HKCR gif     fsviewer \"C:\\PortableApps\\FastStoneImageViewer_Portable\\FSViewer.exe\"\n    CALL :FUNC_ADD_EXT_HKCR jpe     fsviewer \"C:\\PortableApps\\FastStoneImageViewer_Portable\\FSViewer.exe\"\n    CALL :FUNC_ADD_EXT_HKCR jpeg    fsviewer \"C:\\PortableApps\\FastStoneImageViewer_Portable\\FSViewer.exe\"\n    CALL :FUNC_ADD_EXT_HKCR jpg     fsviewer \"C:\\PortableApps\\FastStoneImageViewer_Portable\\FSViewer.exe\"\n    CALL :FUNC_ADD_EXT_HKCR mrw     fsviewer \"C:\\PortableApps\\FastStoneImageViewer_Portable\\FSViewer.exe\"\n    CALL :FUNC_ADD_EXT_HKCR nef     fsviewer \"C:\\PortableApps\\FastStoneImageViewer_Portable\\FSViewer.exe\"\n    CALL :FUNC_ADD_EXT_HKCR orf     fsviewer \"C:\\PortableApps\\FastStoneImageViewer_Portable\\FSViewer.exe\"\n    CALL :FUNC_ADD_EXT_HKCR pef     fsviewer \"C:\\PortableApps\\FastStoneImageViewer_Portable\\FSViewer.exe\"\n    CALL :FUNC_ADD_EXT_HKCR png     fsviewer \"C:\\PortableApps\\FastStoneImageViewer_Portable\\FSViewer.exe\"\n    CALL :FUNC_ADD_EXT_HKCR psd     fsviewer \"C:\\PortableApps\\FastStoneImageViewer_Portable\\FSViewer.exe\"\n    CALL :FUNC_ADD_EXT_HKCR raf     fsviewer \"C:\\PortableApps\\FastStoneImageViewer_Portable\\FSViewer.exe\"\n    CALL :FUNC_ADD_EXT_HKCR rw2     fsviewer \"C:\\PortableApps\\FastStoneImageViewer_Portable\\FSViewer.exe\"\n    CALL :FUNC_ADD_EXT_HKCR srf     fsviewer \"C:\\PortableApps\\FastStoneImageViewer_Portable\\FSViewer.exe\"\n    CALL :FUNC_ADD_EXT_HKCR tga     fsviewer \"C:\\PortableApps\\FastStoneImageViewer_Portable\\FSViewer.exe\"\n    CALL :FUNC_ADD_EXT_HKCR tif     fsviewer \"C:\\PortableApps\\FastStoneImageViewer_Portable\\FSViewer.exe\"\n    CALL :FUNC_ADD_EXT_HKCR tiff    fsviewer \"C:\\PortableApps\\FastStoneImageViewer_Portable\\FSViewer.exe\"\n    CALL :FUNC_ADD_EXT_HKCR wmf     fsviewer \"C:\\PortableApps\\FastStoneImageViewer_Portable\\FSViewer.exe\"\nEXIT \/B \/0\n\n:FUNC_SET_DOCUMENT_EXT\n    ECHO #########################################################################\n    ECHO # \ubb38\uc11c \ud655\uc7a5\uc790\ub97c \ub4f1\ub85d\ud55c\ub2e4.\n    ECHO #########################################################################\n    CALL :FUNC_ADD_EXT_HKCR txt     editplus \"C:\\PortableApps\\EditPlus_Portable\\editplus.exe\"\nEXIT \/B \/0\n\n:FUNC_DEL_MUSICPLAYER_EXT\n    ECHO #########################################################################\n    ECHO # \uc74c\uc545\ud50c\ub808\uc774\uc5b4 \ud655\uc7a5\uc790 \ub4f1\ub85d\uc744 \uc0ad\uc81c\ud55c\ub2e4.\n    ECHO #########################################################################\n    CALL :FUNC_DELETE_EXT_HKCR aac  foobar2000\n    CALL :FUNC_DELETE_EXT_HKCR aiff foobar2000\n    CALL :FUNC_DELETE_EXT_HKCR flac foobar2000\n    CALL :FUNC_DELETE_EXT_HKCR mp3  foobar2000\n    CALL :FUNC_DELETE_EXT_HKCR ogg  foobar2000\n    CALL :FUNC_DELETE_EXT_HKCR pcm  foobar2000\n    CALL :FUNC_DELETE_EXT_HKCR wav  foobar2000\n    CALL :FUNC_DELETE_EXT_HKCR wma  foobar2000\nEXIT \/B \/0\n\n:FUNC_DEL_PICTURE_EXT\n    ECHO #########################################################################\n    ECHO # \uadf8\ub9bc \ubc0f \uc0ac\uc9c4 \ud655\uc7a5\uc790 \ub4f1\ub85d\uc744 \uc0ad\uc81c\ud55c\ub2e4.\n    ECHO #########################################################################\n    CALL :FUNC_DELETE_EXT_HKCR arw     fsviewer\n    CALL :FUNC_DELETE_EXT_HKCR bmp     fsviewer\n    CALL :FUNC_DELETE_EXT_HKCR cr2     fsviewer\n    CALL :FUNC_DELETE_EXT_HKCR crw     fsviewer\n    CALL :FUNC_DELETE_EXT_HKCR dng     fsviewer\n    CALL :FUNC_DELETE_EXT_HKCR gif     fsviewer\n    CALL :FUNC_DELETE_EXT_HKCR jpe     fsviewer\n    CALL :FUNC_DELETE_EXT_HKCR jpeg    fsviewer\n    CALL :FUNC_DELETE_EXT_HKCR jpg     fsviewer\n    CALL :FUNC_DELETE_EXT_HKCR mrw     fsviewer\n    CALL :FUNC_DELETE_EXT_HKCR nef     fsviewer\n    CALL :FUNC_DELETE_EXT_HKCR orf     fsviewer\n    CALL :FUNC_DELETE_EXT_HKCR pef     fsviewer\n    CALL :FUNC_DELETE_EXT_HKCR png     fsviewer\n    CALL :FUNC_DELETE_EXT_HKCR psd     fsviewer\n    CALL :FUNC_DELETE_EXT_HKCR raf     fsviewer\n    CALL :FUNC_DELETE_EXT_HKCR rw2     fsviewer\n    CALL :FUNC_DELETE_EXT_HKCR srf     fsviewer\n    CALL :FUNC_DELETE_EXT_HKCR tga     fsviewer\n    CALL :FUNC_DELETE_EXT_HKCR tif     fsviewer\n    CALL :FUNC_DELETE_EXT_HKCR tiff    fsviewer\n    CALL :FUNC_DELETE_EXT_HKCR wmf     fsviewer\nEXIT \/B \/0\n\n:FUNC_DEL_DOCUMENT_EXT\n    ECHO #########################################################################\n    ECHO # \ubb38\uc11c \ud655\uc7a5\uc790 \ub4f1\ub85d\uc744 \uc0ad\uc81c\ud55c\ub2e4.\n    ECHO #########################################################################\n    CALL :FUNC_DELETE_EXT_HKCR txt  editplus\nEXIT \/B \/0\n\nREM #########################################################################\nREM # HKEY_CLASSES_ROOT\uc5d0 \ud655\uc7a5\uc790 \ub808\uc9c0\uc2a4\ud2b8\ub9ac \ub4f1\ub85d\nREM # ex) CALL :FUNC_ADD_EXT_HKCR txt notepad \"C:\\Windows\\System32\\notepad.exe\"\nREM #########################################################################\n:FUNC_ADD_EXT_HKCR\n    REM #########################################################################\n    REM # HKEY_CLASSES_ROOT\uc5d0 \ud655\uc7a5\uc790 \ub4f1\ub85d\n    REM #########################################################################\n    REG ADD \"HKCR\\.%1\" \/T REG_SZ \/D \"%2.%1\" \/F\n    REM \ub808\uc9c0\uc2a4\ud2b8\ub9ac \ubc31\uc5c5\n    REM REG EXPORT \"HKCR\\.%1\" \"backup_%1.reg\" \/Y\n\n    REM HKEY_CLASSES_ROOT\uc5d0 \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \ub4f1\ub85d\n    REG ADD \"HKCR\\%2.%1\\DefaultIcon\" \/T REG_SZ \/D \"%3\" \/F\n    REG ADD \"HKCR\\%2.%1\\shell\\open\\command\" \/T REG_SZ \/D \"%3 \"\"%%1\"\"\" \/F\nEXIT \/B \/0\n\nREM #########################################################################\nREM # \ud655\uc7a5\uc790 \ub808\uc9c0\uc2a4\ud2b8\ub9ac \uc0ad\uc81c (HKEY_CLASSES_ROOT)\nREM # ex) CALL :FUNC_DELETE_EXT_HKCU txt notepad\nREM #########################################################################\n:FUNC_DELETE_EXT_HKCR\n    REG DELETE \"HKCR\\.%1\" \/F\n    REG DELETE \"HKCR\\%2.%1\" \/F\nEXIT \/B \/0\n\nREM #########################################################################\nREM # HKEY_CURRENT_USER\uc5d0 \ud655\uc7a5\uc790 \ub808\uc9c0\uc2a4\ud2b8\ub9ac \ub4f1\ub85d\nREM # ex) CALL :FUNC_ADD_EXT_HKCU txt notepad \"C:\\Windows\\System32\\notepad.exe\"\nREM #########################################################################\n:FUNC_ADD_EXT_HKCU\n    REM #########################################################################\n    REM # HKEY_CLASSES_ROOT\uc5d0 \ud655\uc7a5\uc790 \ub4f1\ub85d\n    REM #########################################################################\n    REG ADD \"HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\FileExts\\.%1\" \/F\n    REG ADD \"HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\FileExts\\.%1\\OpenWithList\" \/F\n    REG ADD \"HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\FileExts\\.%1\\OpenWithProgids\" \/F\n    REG ADD \"HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\FileExts\\.%1\\UserChoice\" \/F\n    REG ADD \"HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\FileExts\\.%1\\OpenWithList\" \/V \"a\" \/T REG_SZ \/D \"%2.EXE\" \/F\n    REG ADD \"HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\FileExts\\.%1\\OpenWithList\" \/V \"MRUList\" \/T REG_SZ \/D \"a\" \/F\n    CALL :FUNC_ADD_REG_NONE %1 %1file\n    REG ADD \"HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\FileExts\\.%1\\UserChoice\" \/V \"ProgId\" \/T REG_SZ \/D \"%2.%%1\" \/F\n    REG ADD \"HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\ApplicationAssociationToasts\" \/V \"Applications\\%2.exe_.%1\" \/T REG_DWORD \/D 0 \/F\nEXIT \/B \/0\n\nREM #########################################################################\nREM # \ud655\uc7a5\uc790 \ub808\uc9c0\uc2a4\ud2b8\ub9ac \uc0ad\uc81c (HKEY_CURRENT_USER)\nREM # ex) CALL :FUNC_DELETE_EXT_HKCU txt notepad\nREM #########################################################################\n:FUNC_DELETE_EXT_HKCU\n    REG DELETE \"HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\FileExts\\.%1\" \/F\n    REG DELETE \"HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\ApplicationAssociationToasts\" \/V \"Applications\\%2.exe_.%1\" \/F\nEXIT \/B \/0\n\nREM #########################################################################\nREM # REG_NONE \ud0c0\uc785 \ub808\uc9c0\uc2a4\ud2b8\ub9ac \ub4f1\ub85d\nREM # ex) CALL :FUNC_ADD_REG_NONE txt txtfile\nREM #########################################################################\n:FUNC_ADD_REG_NONE\n    ECHO Windows Registry Editor Version 5.00 > __tmp__.reg\n    ECHO [HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\FileExts\\.%1\\OpenWithProgids] >> __tmp__.reg\n    ECHO \"%2\"=hex(0): >> __tmp__.reg\n    REG IMPORT __tmp__.reg\n    DEL \/Q __tmp__.reg\nEXIT \/B \/0\n<\/pre>\n\n\n\n<div class=\"wp-block-file\"><a href=\"\/blog\/wp-content\/uploads\/2020\/08\/set_file_association.bat\">set_file_association<\/a><a href=\"\/blog\/wp-content\/uploads\/2020\/08\/set_file_association.bat\" class=\"wp-block-file__button\" download>\ub2e4\uc6b4\ub85c\ub4dc<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[40],"tags":[],"class_list":["post-3543","post","type-post","status-publish","format-standard","hentry","category-os_win"],"_links":{"self":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3543","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3543"}],"version-history":[{"count":0,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3543\/revisions"}],"wp:attachment":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3543"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3543"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3543"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}