{"id":462,"date":"2022-02-02T12:23:56","date_gmt":"2022-02-02T03:23:56","guid":{"rendered":"https:\/\/blog.mydepot.kr\/?p=462"},"modified":"2022-02-27T00:02:34","modified_gmt":"2022-02-26T15:02:34","slug":"powershell-%ed%8c%8c%ec%9d%bc-%eb%9e%9c%eb%8d%a4-%ec%8b%a4%ed%96%89","status":"publish","type":"post","link":"https:\/\/blog.mydepot.kr\/?p=462","title":{"rendered":"[PowerShell] \uc708\ub3c4\uc6b0\uc5d0\uc11c \ud30c\uc77c \ub79c\ub364 \uc2e4\ud589"},"content":{"rendered":"<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n## \ud30c\uc77c \ub9ac\uc2a4\ud2b8 \uc0dd\uc131 \uc2a4\ud06c\ub9bd\ud2b8\n\n$formats = @(&quot;*.mp4&quot;,&quot;*.mkv&quot;) # \uc2e4\ud589\ud560 \ud30c\uc77c \ud655\uc7a5\uc790\n$dir = Split-Path $MyInvocation.MyCommand.Path\ngci &quot;$dir\\*&quot; -include $formats -recurse | Set-Content .\\list.txt # \ud604\uc7ac \ud3f4\ub354(\ud558\uc704 \ud3f4\ub354 \ud3ec\ud568) \ud574\uc11c list.txt \ud30c\uc77c\ub85c \uc0dd\uc131\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n## \ud30c\uc77c \uc2e4\ud589 \uc2a4\ud06c\ub9bd\ud2b8\n\n$file = Get-Content .\\list.txt | Get-Random -Count 1\n\n# \ud2b9\uc815 \ud504\ub85c\uadf8\ub7a8\uc73c\ub85c \uc2e4\ud589\nStart-Process -FilePath &quot;C:\\Program Files\\Honeyview\\Honeyview.exe&quot; -ArgumentList &quot;&quot;&quot;$file&quot;&quot;&quot;\n\n# \uae30\ubcf8 \ud504\ub85c\uadf8\ub7a8\uc73c\ub85c \uc2e4\ud589\nInvoke-Item -Path &quot;&quot;&quot;$file&quot;&quot;&quot;\n<\/pre><\/div>\n\n\n<p>\ud30c\uc77c \uc2e4\ud589 \uc2a4\ud06c\ub9bd\ud2b8\uc5d0\uc11c \uae30\ubcf8 \ud639\uc740 \ud2b9\uc815 \ud504\ub85c\uadf8\ub7a8\uc73c\ub85c \uc2e4\ud589 \ub458\uc911 \ud558\ub098\ub9cc \uc0ac\uc6a9\ud574\uc57c \ud568.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ud30c\uc77c \uc2e4\ud589 \uc2a4\ud06c\ub9bd\ud2b8\uc5d0\uc11c \uae30\ubcf8 \ud639\uc740 \ud2b9\uc815 \ud504\ub85c\uadf8\ub7a8\uc73c\ub85c \uc2e4\ud589 \ub458\uc911 \ud558\ub098\ub9cc \uc0ac\uc6a9\ud574\uc57c \ud568.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"no","_lmt_disable":"","footnotes":""},"categories":[96],"tags":[16,226,227],"class_list":["post-462","post","type-post","status-publish","format-standard","hentry","category-subdepot","tag-16","tag-226","tag-227"],"modified_by":"\ucc38\ube5b\ubc14\ub2e4","_links":{"self":[{"href":"https:\/\/blog.mydepot.kr\/index.php?rest_route=\/wp\/v2\/posts\/462","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=462"}],"version-history":[{"count":3,"href":"https:\/\/blog.mydepot.kr\/index.php?rest_route=\/wp\/v2\/posts\/462\/revisions"}],"predecessor-version":[{"id":496,"href":"https:\/\/blog.mydepot.kr\/index.php?rest_route=\/wp\/v2\/posts\/462\/revisions\/496"}],"wp:attachment":[{"href":"https:\/\/blog.mydepot.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=462"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.mydepot.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=462"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.mydepot.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=462"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}