{"id":9434,"date":"2024-09-25T14:02:26","date_gmt":"2024-09-25T05:02:26","guid":{"rendered":"https:\/\/www.skyer9.pe.kr\/wordpress\/?p=9434"},"modified":"2024-09-30T11:40:09","modified_gmt":"2024-09-30T02:40:09","slug":"ms-windows-schtasks-%ec%8a%a4%ec%bc%80%ec%a4%84-%ea%b4%80%eb%a6%ac-%ed%88%b4","status":"publish","type":"post","link":"https:\/\/www.skyer9.pe.kr\/wordpress\/?p=9434","title":{"rendered":"MS Windows &#8211; SCHTASKS \uc2a4\ucf00\uc904 \uad00\ub9ac \ud234"},"content":{"rendered":"<h1>MS Windows &#8211; SCHTASKS \uc2a4\ucf00\uc904 \uad00\ub9ac \ud234<\/h1>\n<p>\uc2a4\ucf00\uc904 \ub4f1\ub85d\uc740 \ubcf4\ud1b5 GUI \ub97c \uc774\uc6a9\ud574 \ub4f1\ub85d \ubc0f \uad00\ub9ac\ud558\uc9c0\ub9cc \uc790\ub3d9\ud654\ub97c \uc704\ud574\uc11c\ub294 \ucee4\ub9e8\ub4dc \ub77c\uc778\uc5d0\uc11c \uc785\ub825 \ubc0f \uc218\uc815\ud558\ub294 \ubc29\ubc95\uc744 \uc54c\uc544\uc57c \ud55c\ub2e4.<\/p>\n<h2>\uba85\ub839\uc5b4<\/h2>\n<pre><code class=\"language-bash\">SCHTASKS \/?\n\nSCHTASKS \/CREATE \/?\nSCHTASKS \/DELETE \/?\nSCHTASKS \/CHANGE \/?\nSCHTASKS \/RUN \/?\nSCHTASKS \/END \/?<\/code><\/pre>\n<h2>SCHTASKS \/CREATE<\/h2>\n<h3>\ub9e4\uac1c \ubcc0\uc218<\/h3>\n<table>\n<thead>\n<tr>\n<th>\ub9e4\uac1c\ubcc0\uc218<\/th>\n<th>\uc57d\uc5b4\uc758\ubbf8<\/th>\n<th>\uc124\uba85<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\/S<\/td>\n<td>system<\/td>\n<td>\uc6d0\uaca9 \uc2dc\uc2a4\ud15c \uc774\ub984, \uc0dd\ub7b5 \uac00\ub2a5<\/td>\n<\/tr>\n<tr>\n<td>\/RU<\/td>\n<td>run username<\/td>\n<td>\uc791\uc5c5\uc744 \uc2e4\ud589\ud560 \uc0ac\uc6a9\ud560 \uc0ac\uc6a9\uc790 \uacc4\uc815<\/td>\n<\/tr>\n<tr>\n<td>\/RP<\/td>\n<td>run password<\/td>\n<td>\ube44\ubc00\ubc88\ud638<\/td>\n<\/tr>\n<tr>\n<td>\/NP<\/td>\n<td>no password<\/td>\n<td>\uc554\ud638 \uc800\uc7a5 \uc548\ud568, \ub85c\uceec \ub9ac\uc18c\uc2a4\ub9cc \uc811\uadfc \uac00\ub2a5<\/td>\n<\/tr>\n<tr>\n<td>\/SC<\/td>\n<td>schedule<\/td>\n<td>\uc77c\uc815 \ube48\ub3c4<br \/>MINUTE, HOURLY,DAILY, WEEKLY, MONTHLY<br \/>ONCE, ONSTART, ONLOGON, ONIDLE, ONEVENT<\/td>\n<\/tr>\n<tr>\n<td>\/TN<\/td>\n<td>task name<\/td>\n<td>\uc791\uc5c5\uba85<\/td>\n<\/tr>\n<tr>\n<td>\/ST<\/td>\n<td>start time<\/td>\n<td>\uc2dc\uc791\uc2dc\uac04, 24\uc2dc\uac04 \ud615\uc2dd, HH:MM<\/td>\n<\/tr>\n<tr>\n<td>\/RI<\/td>\n<td>run interval<\/td>\n<td>\ubc18\ubcf5 \uac04\uaca9(\ubd84)<\/td>\n<\/tr>\n<tr>\n<td>\/TR<\/td>\n<td>task run<\/td>\n<td>\uc2e4\ud589\ud560 \ud504\ub85c\uadf8\ub7a8\uc758 \uacbd\ub85c \ubc0f \ud30c\uc77c \uc774\ub984<br \/>\uc608: C:\\windows\\system32\\calc.exe<\/td>\n<\/tr>\n<tr>\n<td>\/MO<\/td>\n<td>modifier<\/td>\n<td>\ud55c\uc815\uc790, \uc77c\uc815 \ube48\ub3c4\ubcc4\ub85c \uc0c1\uc774<\/td>\n<\/tr>\n<tr>\n<td>\/DU<\/td>\n<td>duration<\/td>\n<td>\uc791\uc5c5\uc744 \uc2e4\ud589\ud560 \uae30\uac04, \ud615\uc2dd\uc740 HH:mm<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>\uc0d8\ud50c<\/h3>\n<p>\ud30c\uc77c\uc744 \ubcf5\uc0ac\ud569\ub2c8\ub2e4.<\/p>\n<pre><code class=\"language-bash\">SCHTASKS \/CREATE ^\n    \/TN &quot;\uc791\uc5c5\uba85&quot; ^\n    \/NP ^\n    \/SC DAILY ^\n    \/ST 01:00 ^\n    \/RI 1 ^\n    \/DU 24:00 ^\n    \/TR &quot;D:\\run.bat&quot;<\/code><\/pre>\n<pre><code class=\"language-bash\">@echo off\n\ncopy D:\\1111.txt D:\\2222.txt<\/code><\/pre>\n<h2>SCHTASKS \/DELETE<\/h2>\n<h3>\ub9e4\uac1c \ubcc0\uc218<\/h3>\n<table>\n<thead>\n<tr>\n<th>\ub9e4\uac1c\ubcc0\uc218<\/th>\n<th>\uc57d\uc5b4\uc758\ubbf8<\/th>\n<th>\uc124\uba85<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\/S<\/td>\n<td>system<\/td>\n<td>\uc6d0\uaca9 \uc2dc\uc2a4\ud15c \uc774\ub984, \uc0dd\ub7b5 \uac00\ub2a5<\/td>\n<\/tr>\n<tr>\n<td>\/U<\/td>\n<td>username<\/td>\n<td>\uc2e4\ud589\ud560 \uc0ac\uc6a9\uc790 \ucee8\ud14d\uc2a4\ud2b8<\/td>\n<\/tr>\n<tr>\n<td>\/P<\/td>\n<td>password<\/td>\n<td>\uc554\ud638<\/td>\n<\/tr>\n<tr>\n<td>\/TN<\/td>\n<td>task name<\/td>\n<td>\uc791\uc5c5\uba85<\/td>\n<\/tr>\n<tr>\n<td>\/F<\/td>\n<td>force<\/td>\n<td>\uc791\uc5c5\uc744 \uac15\uc81c\ub85c \uc0ad\uc81c<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>\uc0d8\ud50c<\/h3>\n<pre><code class=\"language-bash\">SCHTASKS \/QUERY \/TN &quot;\uc791\uc5c5\uba85&quot; &gt;NUL 2&gt;&amp;1\nif &#039;%errorlevel%&#039; EQ &#039;0&#039; (\n    SCHTASKS \/DELETE ^\n        \/TN &quot;\uc791\uc5c5\uba85&quot; ^\n        \/F\n)<\/code><\/pre>\n<h2>SCHTASKS \/RUN<\/h2>\n<h3>\ub9e4\uac1c \ubcc0\uc218<\/h3>\n<table>\n<thead>\n<tr>\n<th>\ub9e4\uac1c\ubcc0\uc218<\/th>\n<th>\uc57d\uc5b4\uc758\ubbf8<\/th>\n<th>\uc124\uba85<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\/S<\/td>\n<td>system<\/td>\n<td>\uc6d0\uaca9 \uc2dc\uc2a4\ud15c \uc774\ub984, \uc0dd\ub7b5 \uac00\ub2a5<\/td>\n<\/tr>\n<tr>\n<td>\/U<\/td>\n<td>username<\/td>\n<td>\uc2e4\ud589\ud560 \uc0ac\uc6a9\uc790 \ucee8\ud14d\uc2a4\ud2b8<\/td>\n<\/tr>\n<tr>\n<td>\/P<\/td>\n<td>password<\/td>\n<td>\uc554\ud638<\/td>\n<\/tr>\n<tr>\n<td>\/TN<\/td>\n<td>task name<\/td>\n<td>\uc791\uc5c5\uba85<\/td>\n<\/tr>\n<tr>\n<td>\/I<\/td>\n<td>ignore<\/td>\n<td>\uc81c\uc57d \uc870\uac74\uc774 \uc788\ub294 \uacbd\uc6b0 \ubb34\uc2dc\ud558\uace0 \uc791\uc5c5\uc744 \uc989\uc2dc \uc2e4\ud589<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>\uc0d8\ud50c<\/h3>\n<pre><code class=\"language-bash\">SCHTASKS \/RUN ^\n    \/TN &quot;\uc791\uc5c5\uba85&quot;<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>MS Windows &#8211; SCHTASKS \uc2a4\ucf00\uc904 \uad00\ub9ac \ud234 \uc2a4\ucf00\uc904 \ub4f1\ub85d\uc740 \ubcf4\ud1b5 GUI \ub97c \uc774\uc6a9\ud574 \ub4f1\ub85d \ubc0f \uad00\ub9ac\ud558\uc9c0\ub9cc \uc790\ub3d9\ud654\ub97c \uc704\ud574\uc11c\ub294 \ucee4\ub9e8\ub4dc \ub77c\uc778\uc5d0\uc11c \uc785\ub825 \ubc0f \uc218\uc815\ud558\ub294 \ubc29\ubc95\uc744 \uc54c\uc544\uc57c \ud55c\ub2e4. \uba85\ub839\uc5b4 SCHTASKS \/? SCHTASKS \/CREATE \/? SCHTASKS \/DELETE \/? SCHTASKS \/CHANGE \/? SCHTASKS \/RUN \/? SCHTASKS \/END \/? SCHTASKS \/CREATE \ub9e4\uac1c \ubcc0\uc218 \ub9e4\uac1c\ubcc0\uc218 \uc57d\uc5b4\uc758\ubbf8 \uc124\uba85 \/S system \uc6d0\uaca9 \uc2dc\uc2a4\ud15c\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.skyer9.pe.kr\/wordpress\/?p=9434\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[],"class_list":["post-9434","post","type-post","status-publish","format-standard","hentry","category-devops"],"_links":{"self":[{"href":"https:\/\/www.skyer9.pe.kr\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/9434","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.skyer9.pe.kr\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.skyer9.pe.kr\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.skyer9.pe.kr\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.skyer9.pe.kr\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9434"}],"version-history":[{"count":11,"href":"https:\/\/www.skyer9.pe.kr\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/9434\/revisions"}],"predecessor-version":[{"id":9449,"href":"https:\/\/www.skyer9.pe.kr\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/9434\/revisions\/9449"}],"wp:attachment":[{"href":"https:\/\/www.skyer9.pe.kr\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9434"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.skyer9.pe.kr\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9434"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.skyer9.pe.kr\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9434"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}