{"id":674,"date":"2013-08-19T09:18:58","date_gmt":"2013-08-19T01:18:58","guid":{"rendered":"http:\/\/blog.infinity.idv.tw\/index.php\/2013\/08\/19\/%e6%89%b9%e6%ac%a1%e6%aa%94%ef%bc%9a%e7%b5%b1%e8%a8%88nas%e8%b3%87%e6%96%99%e5%a4%be%e5%a4%a7%e5%b0%8f%e4%b8%a6e-mail%e7%b3%bb%e7%b5%b1%e7%ae%a1%e7%90%86%e8%80%85\/"},"modified":"2013-08-19T09:18:58","modified_gmt":"2013-08-19T01:18:58","slug":"%e6%89%b9%e6%ac%a1%e6%aa%94%ef%bc%9a%e7%b5%b1%e8%a8%88nas%e8%b3%87%e6%96%99%e5%a4%be%e5%a4%a7%e5%b0%8f%e4%b8%a6e-mail%e7%b3%bb%e7%b5%b1%e7%ae%a1%e7%90%86%e8%80%85","status":"publish","type":"post","link":"http:\/\/blog.infinity.idv.tw\/?p=674","title":{"rendered":"\u6279\u6b21\u6a94\uff1a\u7d71\u8a08NAS\u8cc7\u6599\u593e\u5927\u5c0f\u4e26E-Mail\u7cfb\u7d71\u7ba1\u7406\u8005"},"content":{"rendered":"<p>\u8cc7\u6599\u51fa\u8655\uff1a<a href=\"http:\/\/jojochen.blog.ithome.com.tw\/post\/2529\/124548\">http:\/\/jojochen.blog.ithome.com.tw\/post\/2529\/124548<\/a><\/p>\n<p><b><a href=\"http:\/\/jojochen.blog.ithome.com.tw\/post\/2529\/124548\">\u6279\u6b21\u6a94\uff1a\u7d71\u8a08NAS\u8cc7\u6599\u593e\u5927\u5c0f\u4e26E-Mail\u7cfb\u7d71\u7ba1\u7406\u8005<\/a><\/b><\/p>\n<p>\u7531 JojoChen \u767c\u8868\u65bc [ <a href=\"http:\/\/jojochen.blog.ithome.com.tw\/category\/2529\/7658\">Script<\/a> ]     <br \/><a href=\"http:\/\/jojochen.blog.ithome.com.tw\/post\/2529\/124548\">(1029) \u95b1\u8b80<\/a>,&#160; <a href=\"http:\/\/jojochen.blog.ithome.com.tw\/trackbacks\/2529\/124548\">(0) \u5f15\u7528<\/a>,&#160; <a href=\"http:\/\/jojochen.blog.ithome.com.tw\/post\/2529\/124548#comments\">(0) \u56de\u61c9<\/a> , <a href=\"http:\/\/jojochen.blog.ithome.com.tw\/index.php?op=addPushArticle&amp;aid=124548&amp;push=1\"><img loading=\"lazy\" style=\"border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px\" title=\"clip_image002\" border=\"0\" alt=\"clip_image002\" src=\"http:\/\/blog.infinity.idv.tw\/blog-img\/NASEMail_8289\/clip_image002.gif\" width=\"16\" height=\"16\" \/> \u63a8\u6587( 0 )<\/a><\/p>\n<p>\u70ba\u4e86\u65b9\u4fbf\u7d71\u8a08\u5404NAS\u8cc7\u6599\u593e\u5927\u5c0f\uff0c\u4f7f\u7528Windows Server 2003 Support Tools\u5176\u4e2d\u4e00\u500bdiruse.exe\u7a0b\u5f0f\uff0c\u8a08\u7b97NAS\u5404\u8cc7\u6599\u593e\u4f7f\u7528\u7684\u5927\u5c0f\uff0c\u518d\u5229\u7528\u514d\u8cbb\u90f5\u4ef6\u5de5\u5177bmail\u4f86\u50b3\u9001\u7d66\u7cfb\u7d71\u7ba1\u7406\u8005\uff0c\u65b9\u4fbf\u5f8c\u7e8c\u7684\u7dad\u8b77\u8207\u8ffd\u8e2a\uff0c\u4e26\u8a2d\u5b9a\u6392\u7a0b\uff0c\u6279\u6b21\u6a94\u5167\u5bb9\u5982\u4e0b\uff1a<\/p>\n<p>del \/q d:\\nas1-folder-use.txt    <br \/>DIRUSE \/s \/m&#160; <a href=\"http:\/\/blog.ithome.com.tw\/nas1\/mailspam\">\\\\nas\\ShareFolder1<\/a> &gt;&gt;&#160; d:\\nas-folder-size.txt     <br \/>DIRUSE \/s \/m&#160; <a href=\"http:\/\/blog.ithome.com.tw\/nas1\/mailsecurity\">\\\\nas\\ShareFolder2<\/a> &gt;&gt;&#160; d:\\nas-folder-size.txt     <br \/>DIRUSE \/s \/m&#160; <a href=\"http:\/\/blog.ithome.com.tw\/nas1\/backup$\">\\\\nas\\ShareFolder3<\/a> &gt;&gt;&#160; d:\\nas-folder-size.txt     <br \/>bmail -s MailServer -t jojo<a href=\"mailto:jojo@test.com\">@test.com<\/a> -f jojo<a href=\"mailto:jojo@test.com\">@test.com<\/a> -a &quot;Nas Folder Size&quot; -m d:\\nas-folder-size.txt<\/p>\n<p>diruse.exe\u7684\u8aaa\u660e\u5982\u4e0b\uff1a<\/p>\n<p>C:\\&gt;diruse \/?<\/p>\n<p>DIRUSE displays a list of disk usage for a directory tree(s). Version 1.20<\/p>\n<p>DIRUSE [\/S | \/V] [\/M | \/K | \/B] [\/C] [\/,] [\/Q:# [\/L] [\/A] [\/D] [\/O]] [\/*] DIRS<\/p>\n<p>\/S&#160;&#160;&#160;&#160;&#160; Specifies whether subdirectories are included in the output.    <br \/>\/V&#160;&#160;&#160;&#160;&#160; Output progress reports while scanning subdirectories.&#160; Ignored if \/S is     <br \/>specified.     <br \/>\/M&#160;&#160;&#160;&#160;&#160; Displays disk usage in megabytes.     <br \/>\/K&#160;&#160;&#160;&#160;&#160; Displays disk usage in kilobytes.     <br \/>\/B&#160;&#160;&#160;&#160;&#160; Displays disk usage in bytes (default).     <br \/>\/C&#160;&#160;&#160;&#160;&#160; Use Compressed size instead of apparent size.     <br \/>\/,&#160;&#160;&#160;&#160;&#160; Use thousand separator when displaying sizes.     <br \/>\/L&#160;&#160;&#160;&#160;&#160; Output overflows to logfile .\\DIRUSE.LOG.     <br \/>\/*&#160;&#160;&#160;&#160;&#160; Uses the top-level directories residing in the specified DIRS     <br \/>\/Q:#&#160;&#160;&#160; Mark directories that exceed the specified size (#) with a &quot;!&quot;.     <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; (If \/M or \/K is not specified, then bytes is assumed.)     <br \/>\/A&#160;&#160;&#160;&#160;&#160; Specifies that an alert is generated if specified sizes are exceeded.     <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; (The Alerter service must be running.)     <br \/>\/D&#160;&#160;&#160;&#160;&#160; Displays only directories that exceed specified sizes.     <br \/>\/O&#160;&#160;&#160;&#160;&#160; Specifies that subdirectories are not checked for specified size     <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; overflow.     <br \/>DIRS&#160;&#160;&#160; Specifies a list of the paths to check.<\/p>\n<p>Note:&#160;&#160; Parameters can be typed in any order. And the &#8216;-&#8216; symbol can be    <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; used in place of the &#8216;\/&#8217; symbol.<\/p>\n<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; Also, if \/Q is specified, then return code is ONE if any directories are    <br \/>found that     <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; exceed the specified sizes.&#160; Otherwise the return code is ZERO.<\/p>\n<p>Example: diruse \/s \/m \/q:1.5 \/l \/* c:\\users<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8cc7\u6599\u51fa\u8655\uff1ahttp:\/\/jojochen.blog.ithome.com.tw\/post\/2529\/124548<\/p>\n<p>\u6279\u6b21\u6a94\uff1a\u7d71\u8a08NAS\u8cc7\u6599\u593e\u5927\u5c0f\u4e26E-Mail\u7cfb\u7d71\u7ba1\u7406\u8005<\/p>\n<p>\u7531 JojoChen \u767c\u8868\u65bc [ Script ]     (1029) \u95b1\u8b80,&#160; (0) \u5f15\u7528,&#160; (0) \u56de\u61c9 ,  \u63a8\u6587( 0 )<\/p>\n<p>\u70ba\u4e86\u65b9\u4fbf\u7d71\u8a08\u5404NAS\u8cc7\u6599\u593e\u5927\u5c0f\uff0c\u4f7f\u7528Windows Server 2003 Support Tools\u5176\u4e2d\u4e00\u500bdiruse.exe\u7a0b\u5f0f\uff0c\u8a08\u7b97NAS\u5404\u8cc7\u6599\u593e\u4f7f\u7528\u7684\u5927\u5c0f\uff0c\u518d\u5229\u7528\u514d\u8cbb\u90f5\u4ef6\u5de5\u5177bmail\u4f86\u50b3\u9001\u7d66\u7cfb\u7d71\u7ba1\u7406\u8005\uff0c\u65b9\u4fbf\u5f8c\u7e8c\u7684\u7dad\u8b77\u8207\u8ffd\u8e2a\uff0c\u4e26\u8a2d\u5b9a\u6392\u7a0b\uff0c\u6279\u6b21\u6a94\u5167\u5bb9\u5982\u4e0b\uff1a<\/p>\n<p>del \/q d:\\nas1-folder-use.txt    DIRUSE \/s \/m&#160; \\\\nas\\ShareFolder1 &gt;&gt;&#160; d:\\nas-folder-size.txt     DIRUSE \/s \/m&#160; \\\\nas\\ShareFolder2 &gt;&gt;&#160; d:\\nas-folder-size.txt     DIRUSE \/s \/m&#160; \\\\nas\\ShareFolder3 &gt;&gt;&#160; [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[32,40],"tags":[438],"_links":{"self":[{"href":"http:\/\/blog.infinity.idv.tw\/index.php?rest_route=\/wp\/v2\/posts\/674"}],"collection":[{"href":"http:\/\/blog.infinity.idv.tw\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.infinity.idv.tw\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.infinity.idv.tw\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.infinity.idv.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=674"}],"version-history":[{"count":0,"href":"http:\/\/blog.infinity.idv.tw\/index.php?rest_route=\/wp\/v2\/posts\/674\/revisions"}],"wp:attachment":[{"href":"http:\/\/blog.infinity.idv.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=674"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.infinity.idv.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=674"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.infinity.idv.tw\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=674"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}