{"id":812,"date":"2024-04-05T14:30:18","date_gmt":"2024-04-05T05:30:18","guid":{"rendered":"https:\/\/blog.mydepot.kr\/?p=812"},"modified":"2024-04-05T14:30:19","modified_gmt":"2024-04-05T05:30:19","slug":"batch-%ec%9e%85%eb%a0%a5%ec%b0%bd%ec%9d%84-%eb%9d%84%ec%9a%b0%ea%b3%a0-%ec%a7%80%ec%a0%95%ed%95%9c-%ea%b0%92%eb%93%a4%ea%b3%bc-%ec%9d%bc%ec%b9%98%ed%95%98%eb%8a%94%ec%a7%80-%ec%a1%b0%ea%b1%b4","status":"publish","type":"post","link":"https:\/\/blog.mydepot.kr\/?p=812","title":{"rendered":"[BATCH] \uc785\ub825\ucc3d\uc744 \ub744\uc6b0\uace0 \uc9c0\uc815\ud55c \uac12\ub4e4\uacfc \uc77c\uce58\ud558\ub294\uc9c0 \uc870\uac74 \ucc98\ub9ac"},"content":{"rendered":"<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nfor \/f &quot;delims=&quot; %%i in (&#039;PowerShell -Command &quot;Add-Type -AssemblyName Microsoft.VisualBasic; &#x5B;Microsoft.VisualBasic.Interaction]::InputBox(&#039;\uc22b\uc790\ub97c \uc785\ub825\ud558\uc138\uc694&#039;, &#039;\uc785\ub825&#039;)&quot;&#039;) do set &quot;num=%%i&quot;\necho \uc785\ub825\ud558\uc2e0 \uc22b\uc790\ub294 %num% \uc785\ub2c8\ub2e4.\n\nset &quot;array=1 2 3 4 5&quot;\n\n\nfor %%i in (%array%) do (\n    if %%i EQU %num% (\n        echo \ubcc0\uc218\uac00 \ubc30\uc5f4 \uac12 \uc911 \ud558\ub098\uc640 \uc77c\uce58\ud569\ub2c8\ub2e4.\n        goto end\n    )\n)\n\necho \ubcc0\uc218\uac00 \ubc30\uc5f4 \uac12 \uc911 \uc5b4\ub290 \uac83\uacfc\ub3c4 \uc77c\uce58\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4.\n\n:end\n<\/pre><\/div>\n\n\n<p>\ud30c\uc6cc\uc258\uc744 \ud65c\uc6a9\ud574\uc11c \uc785\ub825\ucc3d\uc744 \ub744\uc6b0\uace0, \uc785\ub825\ud55c \uac12\uc774 array\uc548\uc5d0 \uc788\ub294 \uac12 \uc911 \ud558\ub098\uc640 \uc77c\uce58\ud558\ub294\uc9c0 \ud655\uc778\ud55c\ub2e4.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ud30c\uc6cc\uc258\uc744 \ud65c\uc6a9\ud574\uc11c \uc785\ub825\ucc3d\uc744 \ub744\uc6b0\uace0, \uc785\ub825\ud55c \uac12\uc774 array\uc548\uc5d0 \uc788\ub294 \uac12 \uc911 \ud558\ub098\uc640 \uc77c\uce58\ud558\ub294\uc9c0 \ud655\uc778\ud55c\ub2e4.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","footnotes":""},"categories":[96],"tags":[45,76,421,422,423],"class_list":["post-812","post","type-post","status-publish","format-standard","hentry","category-subdepot","tag-45","tag-76","tag-powershell","tag-422","tag-if"],"modified_by":"\ucc38\ube5b\ubc14\ub2e4","_links":{"self":[{"href":"https:\/\/blog.mydepot.kr\/index.php?rest_route=\/wp\/v2\/posts\/812","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.mydepot.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.mydepot.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.mydepot.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.mydepot.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=812"}],"version-history":[{"count":1,"href":"https:\/\/blog.mydepot.kr\/index.php?rest_route=\/wp\/v2\/posts\/812\/revisions"}],"predecessor-version":[{"id":813,"href":"https:\/\/blog.mydepot.kr\/index.php?rest_route=\/wp\/v2\/posts\/812\/revisions\/813"}],"wp:attachment":[{"href":"https:\/\/blog.mydepot.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=812"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.mydepot.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=812"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.mydepot.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=812"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}