{"id":339,"date":"2026-06-25T12:47:43","date_gmt":"2026-06-25T09:47:43","guid":{"rendered":"https:\/\/pasocore.com\/?p=339"},"modified":"2026-06-25T07:38:19","modified_gmt":"2026-06-25T04:38:19","slug":"%e3%83%95%e3%82%a9%e3%83%ab%e3%83%80%e3%83%bc%e3%82%92%e3%80%8c%e3%82%b3%e3%83%9e%e3%83%b3%e3%83%89%e3%83%97%e3%83%ad%e3%83%b3%e3%83%97%e3%83%88%e3%80%8d%e3%81%a7%e5%89%8a%e9%99%a4%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/pasocore.com\/?p=339","title":{"rendered":"\u30d5\u30a9\u30eb\u30c0\u30fc\u3092\u300c\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u300d\u3067\u524a\u9664\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<p>\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u3092\u4f7f\u3063\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u524a\u9664\u306f\u3001Windows\u7ba1\u7406\u306e\u57fa\u672c\u30b9\u30ad\u30eb\u3067\u3059\u3002GUI\u3092\u4f7f\u308f\u305a\u306b\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u3092\u8fc5\u901f\u306b\u30af\u30ea\u30a2\u3067\u304d\u307e\u3059\u3002\u3053\u3053\u3067\u306f\u3001\u5f93\u6765\u306e\u30b3\u30f3\u30bd\u30fc\u30eb\u30b3\u30de\u30f3\u30c9\u304b\u3089\u3001\u8a73\u7d30\u306a\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u3092\u5099\u3048\u305f\u9ad8\u5ea6\u306aPowerShell\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u307e\u3067\u3001\u6280\u8853\u7684\u306b\u6b63\u78ba\u306a\u624b\u6cd5\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n<h2 id=\"%e6%96%b9%e6%b3%951-rmdir-rd-%e3%82%b3%e3%83%9e%e3%83%b3%e3%83%89%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%9f%e3%83%87%e3%82%a3%e3%83%ac%e3%82%af%e3%83%88%e3%83%aa%e5%89%8a%e9%99%a4\">\u65b9\u6cd51: RMDIR (RD) \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u524a\u9664<\/h2>\n<p>\u5f93\u6765\u306e\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u74b0\u5883\u3067\u30d5\u30a9\u30eb\u30c0\u3092\u76f4\u63a5\u524a\u9664\u3059\u308b\u306b\u306f\u3001\u6a19\u6e96\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3RMDIR(\u307e\u305f\u306f\u77ed\u7e2e\u5f62RD)\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u8ffd\u52a0\u30d1\u30e9\u30e1\u30fc\u30bf\u304c\u306a\u3044\u5834\u5408\u306f\u7a7a\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3057\u304b\u524a\u9664\u3067\u304d\u307e\u305b\u3093\u304c\u3001\/S\u304a\u3088\u3073\/Q\u30b9\u30a4\u30c3\u30c1\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u3067\u3001\u78ba\u8a8d\u3092\u6c42\u3081\u305a\u306b\u3001\u3042\u3089\u3086\u308b\u968e\u5c64\u69cb\u9020\u3092\u518d\u5e30\u7684\u306b\u5b8c\u5168\u524a\u9664\u3059\u308b\u30c4\u30fc\u30eb\u306b\u5909\u308f\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u300c\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u300d\u3092\u7ba1\u7406\u8005\u3068\u3057\u3066\u958b\u304d\u307e\u3059\u3002<\/li>\n<li>\u7a7a\u306e\u30d5\u30a9\u30eb\u30c0\u3092\u524a\u9664\u3059\u308b\u306b\u306f\u3001\u4ee5\u4e0b\u3092\u5165\u529b\u3057\u307e\u3059:<\/li>\n<\/ul>\n<p><code>RMDIR \"\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u30d5\u30eb\u30d1\u30b9\"<\/code><\/p>\n<p>\u307e\u305f\u306f<\/p>\n<p><code>RD \"\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u30d5\u30eb\u30d1\u30b9\"<\/code><\/p>\n<p>\u30d5\u30a9\u30eb\u30c0\u306b\u30d5\u30a1\u30a4\u30eb\u3084\u30b5\u30d6\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u5834\u5408\u3001\u30b9\u30a4\u30c3\u30c1\/S\u3092\u8ffd\u52a0\u3057\u3066\u518d\u5e30\u7684\u306a\u5168\u30b3\u30f3\u30c6\u30f3\u30c4\u524a\u9664\u3092\u6709\u52b9\u306b\u3057\u307e\u3059:<\/p>\n<p><code>RMDIR \/S \"\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u30d5\u30eb\u30d1\u30b9\"<\/code><\/p>\n<p>\u300cY\/N?\u300d\u306e\u3088\u3046\u306a\u6a19\u6e96\u306e\u78ba\u8a8d\u30d7\u30ed\u30f3\u30d7\u30c8\u3092\u6291\u5236\u3059\u308b\u306b\u306f\u3001<code>\/Q<\/code>(Quiet)\u30b9\u30a4\u30c3\u30c1\u3092\u4f7f\u7528\u3057\u307e\u3059:<\/p>\n<p><code>RMDIR \/S \/Q \"\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u30d5\u30eb\u30d1\u30b9\"<\/code><\/p>\n<p>\u30b9\u30a4\u30c3\u30c1\u306f\u307e\u3068\u3081\u3066\u8a18\u8ff0\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059:<\/p>\n<p><code>RD \/S \/Q \"C:\\Path\\To\\Folder\"<\/code><\/p>\n<h2 id=\"%e6%96%b9%e6%b3%952-powershell%e3%81%a8remove-item%e3%82%b3%e3%83%9e%e3%83%b3%e3%83%89%e3%81%ae%e4%bd%bf%e7%94%a8\">\u65b9\u6cd52: PowerShell\u3068Remove-Item\u30b3\u30de\u30f3\u30c9\u306e\u4f7f\u7528<\/h2>\n<p>PowerShell\u30b7\u30a7\u30eb\u306f\u3001\u30d5\u30a1\u30a4\u30eb\u3068\u30d5\u30a9\u30eb\u30c0\u306e\u4e21\u65b9\u3092\u524a\u9664\u3067\u304d\u308b\u6c4e\u7528\u30b3\u30de\u30f3\u30c9\u30ec\u30c3\u30c8<code>Remove-Item<\/code>\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002\u5f93\u6765\u306ecmd.exe\u306b\u5bfe\u3059\u308b\u4e3b\u306a\u5229\u70b9\u306f\u3001\u96a0\u3057\u30d5\u30a1\u30a4\u30eb\u3084\u30b7\u30b9\u30c6\u30e0\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u5f37\u5236\u524a\u9664\u3001\u304a\u3088\u3073\u64cd\u4f5c\u306e\u30b9\u30c6\u30c3\u30d7\u30d0\u30a4\u30b9\u30c6\u30c3\u30d7\u5236\u5fa1\u306e\u305f\u3081\u306e\u62e1\u5f35\u30d1\u30e9\u30e1\u30fc\u30bf\u30bb\u30c3\u30c8\u306e\u30b5\u30dd\u30fc\u30c8\u3067\u3059\u3002<\/p>\n<ul>\n<li>PowerShell\u3092\u7ba1\u7406\u8005\u6a29\u9650\u3067\u8d77\u52d5\u3057\u307e\u3059\u3002<\/li>\n<li>\u7a7a\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u524a\u9664\u3059\u308b\u306b\u306f\u4ee5\u4e0b\u3092\u5b9f\u884c\u3057\u307e\u3059:<\/li>\n<\/ul>\n<p><code>Remove-Item \"\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u30d5\u30eb\u30d1\u30b9\"<\/code><\/p>\n<p>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u7a7a\u3067\u306a\u3044\u5834\u5408\u3001<code>-Recurse<\/code>\u30b9\u30a4\u30c3\u30c1\u304c\u5fc5\u9808\u3067\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u30c1\u30a7\u30fc\u30f3\u4e0b\u306e\u3059\u3079\u3066\u306e\u30cd\u30b9\u30c8\u3055\u308c\u305f\u30a2\u30a4\u30c6\u30e0\u304c\u524a\u9664\u3055\u308c\u307e\u3059:<\/p>\n<p><code>Remove-Item \"\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u30d5\u30eb\u30d1\u30b9\" -Recurse<\/code><\/p>\n<p>\u300c\u8aad\u307f\u53d6\u308a\u5c02\u7528\u300d\u3001\u300c\u96a0\u3057\u300d\u3001\u300c\u30b7\u30b9\u30c6\u30e0\u300d\u306a\u3069\u306e\u5c5e\u6027\u5236\u9650\u3092\u514b\u670d\u3057\u3001\u30a2\u30af\u30bb\u30b9\u30a8\u30e9\u30fc\u3092\u56de\u907f\u3059\u308b\u306b\u306f\u3001-Force\u30b9\u30a4\u30c3\u30c1\u3092\u8ffd\u52a0\u3057\u307e\u3059:<\/p>\n<p><code>Remove-Item \"C:\\Path\\To\\Folder\" -Recurse -Force<\/code><\/p>\n<p>\u524a\u9664\u3055\u308c\u308b\u5404\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u8996\u899a\u7684\u306b\u5236\u5fa1\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u5834\u5408\u306f\u3001<code>-Confirm<\/code>\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u30b7\u30b9\u30c6\u30e0\u306f\u5404\u30a2\u30a4\u30c6\u30e0\u306b\u5bfe\u3057\u3066[Y] \u306f\u3044 \/ [N] \u3044\u3044\u3048\u30c0\u30a4\u30a2\u30ed\u30b0\u3092\u8868\u793a\u3057\u307e\u3059:<\/p>\n<p><code>Remove-Item \"\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u30d5\u30eb\u30d1\u30b9\" -Recurse -Confirm<\/code><\/p>\n<p>\u5b9f\u969b\u306e\u5909\u66f4\u3092\u52a0\u3048\u305a\u306b\u524a\u9664\u5bfe\u8c61\u3092\u5b89\u5168\u306b\u30b7\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3\u3059\u308b\u306b\u306f\u3001<code>-WhatIf<\/code>\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u9069\u7528\u3057\u307e\u3059:<\/p>\n<p><code>Remove-Item \"\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u30d5\u30eb\u30d1\u30b9\" -Recurse -WhatIf<\/code><\/p>\n<h2 id=\"%e6%96%b9%e6%b3%953-%e3%83%91%e3%82%a4%e3%83%97%e3%83%a9%e3%82%a4%e3%83%b3%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%9fpowershell%e3%81%a7%e3%81%ae%e5%89%8a%e9%99%a4\">\u65b9\u6cd53: \u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u3092\u4f7f\u7528\u3057\u305fPowerShell\u3067\u306e\u524a\u9664<\/h2>\n<p>PowerShell\u306e\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u306f\u3001\u8907\u6570\u306e\u30b3\u30de\u30f3\u30c9\u30ec\u30c3\u30c8\u30921\u3064\u306e\u30c1\u30a7\u30fc\u30f3\u306b\u7d50\u5408\u3057\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u9078\u629e\u7684\u306b\u524a\u9664\u3059\u308b\u3053\u3068\u3092\u53ef\u80fd\u306b\u3057\u307e\u3059\u3002\u3053\u306e\u30a2\u30d7\u30ed\u30fc\u30c1\u306f\u3001\u7279\u5b9a\u306e\u30d5\u30a9\u30eb\u30c0\u3060\u3051\u3067\u306a\u304f\u3001\u540d\u524d\u3001\u4f5c\u6210\u65e5\u3001\u30b5\u30a4\u30ba\u3001\u5c5e\u6027\u306a\u3069\u306e\u8907\u96d1\u306a\u57fa\u6e96\u3067\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u3055\u308c\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u30bb\u30c3\u30c8\u3092\u6d88\u53bb\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u5834\u5408\u306b\u4e0d\u53ef\u6b20\u3067\u3059\u3002<\/p>\n<p>\u5168\u4f53\u7684\u306a\u69cb\u6587\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059:<\/p>\n<p><code>Get-ChildItem -Path \"\u691c\u7d22\u30d1\u30b9\" -Directory | Where-Object {\u6761\u4ef6} | Remove-Item -Recurse -Force<\/code><\/p>\n<ul>\n<li><code>Get-ChildItem<\/code>\u306f\u6307\u5b9a\u3055\u308c\u305f\u5834\u6240\u306b\u3042\u308b\u3059\u3079\u3066\u306e\u30d5\u30a9\u30eb\u30c0(<code>-Directory<\/code>)\u3092\u53ce\u96c6\u3057\u307e\u3059\u3002<\/li>\n<li><code>Where-Object<\/code>\u306f\u3001\u4e2d\u62ec\u5f27<code>{}<\/code>\u5185\u306e\u6761\u4ef6\u306b\u4e00\u81f4\u3059\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u307f\u3092\u901a\u904e\u3055\u305b\u307e\u3059\u3002<\/li>\n<li><code>Remove-Item<\/code>\u306f<code>-Recurse<\/code>\u3068<code>-Force<\/code>\u30b9\u30a4\u30c3\u30c1\u3092\u4f7f\u7528\u3057\u3066\u3001\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u3067\u6e21\u3055\u308c\u305f\u3059\u3079\u3066\u306e\u3082\u306e\u3092\u6700\u7d42\u7684\u306b\u524a\u9664\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<h3 id=\"powershell%e3%81%a7%e3%81%ae%e3%83%95%e3%82%a9%e3%83%ab%e3%83%80%e3%83%bc%e3%83%95%e3%82%a3%e3%83%ab%e3%82%bf%e3%83%aa%e3%83%b3%e3%82%b0%e6%9d%a1%e4%bb%b6%e4%be%8b\">PowerShell\u3067\u306e\u30d5\u30a9\u30eb\u30c0\u30fc\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u6761\u4ef6\u4f8b<\/h3>\n<p>Where-Object\u30d6\u30ed\u30c3\u30af\u3067\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u6b63\u78ba\u306b\u9078\u629e\u3059\u308b\u305f\u3081\u306b\u3001\u4ee5\u4e0b\u306e\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u30eb\u30fc\u30eb\u304c\u9069\u7528\u3055\u308c\u307e\u3059:<\/p>\n<p>\u30d5\u30a9\u30eb\u30c0\u30fc\u540d\u3067\u30d5\u30a3\u30eb\u30bf: \u30ef\u30a4\u30eb\u30c9\u30ab\u30fc\u30c9<code>*<\/code>(\u4efb\u610f\u306e\u6587\u5b57\u6570)\u3092\u542b\u3080<code>-like<\/code>\u6f14\u7b97\u5b50\u3001\u307e\u305f\u306f\u6b63\u78ba\u306a\u6bd4\u8f03<code>-eq<\/code>\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<pre># \u540d\u524d\u306b\"backup\"\u3092\u542b\u3080\u30d5\u30a9\u30eb\u30c0\u3092\u524a\u9664\r\nWhere-Object { $_.Name -like \"*backup*\" }\r\n\r\n# \"temp\"\u3068\u3044\u3046\u6b63\u78ba\u306a\u540d\u524d\u306e\u30d5\u30a9\u30eb\u30c0\u3092\u524a\u9664\r\nWhere-Object { $_.Name -eq \"temp\" }<\/pre>\n<p>\u4f5c\u6210\u65e5\u3067\u30d5\u30a3\u30eb\u30bf: <code>CreationTime<\/code>\u30d7\u30ed\u30d1\u30c6\u30a3\u3068<code>-lt<\/code>(\u3088\u308a\u5c0f\u3055\u3044)\u307e\u305f\u306f<code>-gt<\/code>(\u3088\u308a\u5927\u304d\u3044)\u6bd4\u8f03\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<pre># 30\u65e5\u4ee5\u4e0a\u524d\u306b\u4f5c\u6210\u3055\u308c\u305f\u30d5\u30a9\u30eb\u30c0\u3092\u524a\u9664\r\nWhere-Object { $_.CreationTime -lt (Get-Date).AddDays(-30) }\r\n\r\n# \u7279\u5b9a\u306e\u65e5\u306b\u4f5c\u6210\u3055\u308c\u305f\u30d5\u30a9\u30eb\u30c0\u3092\u524a\u9664\r\nWhere-Object { $_.CreationTime.Date -eq (Get-Date \"2024-01-15\").Date }<\/pre>\n<p>\u6700\u7d42\u66f4\u65b0\u65e5\u3067\u30d5\u30a3\u30eb\u30bf: <code>LastWriteTime<\/code>\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<pre># 1\u5e74\u4ee5\u4e0a\u5909\u66f4\u3055\u308c\u3066\u3044\u306a\u3044\u30d5\u30a9\u30eb\u30c0\r\nWhere-Object { $_.LastWriteTime -lt (Get-Date).AddYears(-1) }<\/pre>\n<p>\u5c5e\u6027\u3067\u30d5\u30a3\u30eb\u30bf: <code>-match<\/code>\u3092\u4f7f\u7528\u3057\u3066\u30d3\u30c3\u30c8\u30de\u30b9\u30af<code>Attributes<\/code>\u3092\u5206\u6790\u3057\u307e\u3059\u3002<\/p>\n<pre># \u96a0\u3057\u30d5\u30a9\u30eb\u30c0\u306e\u307f\r\nWhere-Object { $_.Attributes -match \"Hidden\" }\r\n\r\n# \u30b7\u30b9\u30c6\u30e0\u5c5e\u6027\u3092\u6301\u305f\u306a\u3044\u30d5\u30a9\u30eb\u30c0\r\nWhere-Object { -not ($_.Attributes -match \"System|Hidden|ReadOnly\") }<\/pre>\n<p>\u30b5\u30a4\u30ba\u3067\u30d5\u30a3\u30eb\u30bf: \u30b5\u30a4\u30ba\u8a08\u7b97\u306b\u306f\u3001<code>ForEach-Object<\/code>\u3067\u306e\u4e2d\u9593\u51e6\u7406\u3068<code>Measure-Object<\/code>\u3067\u306e\u30d5\u30a1\u30a4\u30eb\u9577\u306e\u5408\u8a08\u6e2c\u5b9a\u304c\u5fc5\u8981\u3067\u3059\u30021GB\u3092\u8d85\u3048\u308b\u30d5\u30a9\u30eb\u30c0\u3092\u524a\u9664\u3059\u308b\u4f8b:<\/p>\n<pre>Get-ChildItem -Directory | ForEach-Object {\r\n$size = (Get-ChildItem $_.FullName -Recurse | Measure-Object -Property Length -Sum).Sum\r\nif ($size -gt 1GB) { Remove-Item $_.FullName -Recurse -Force }\r\n}<\/pre>\n<p>\u6761\u4ef6\u306e\u7d44\u307f\u5408\u308f\u305b: \u8ad6\u7406\u6f14\u7b97\u5b50<code>-and<\/code>(\u304b\u3064)\u3068<code>-or<\/code>(\u307e\u305f\u306f)\u3092\u4f7f\u7528\u3057\u3066\u8907\u6570\u306e\u57fa\u6e96\u3092\u7d50\u5408\u3057\u307e\u3059\u3002<\/p>\n<pre># 1\u9031\u9593\u4ee5\u4e0a\u5909\u66f4\u3055\u308c\u3066\u3044\u306a\u3044\u4e00\u6642\u30d5\u30a9\u30eb\u30c0\u3092\u524a\u9664\r\nWhere-Object { $_.Name -like \"*temp*\" -and $_.LastWriteTime -lt (Get-Date).AddDays(-7) }<\/pre>\n<h2 id=\"%e6%96%b9%e6%b3%954-%e4%ba%92%e6%8f%9b%e3%83%a2%e3%83%bc%e3%83%89%e3%81%a7%e3%81%aedeltree%e3%82%b3%e3%83%9e%e3%83%b3%e3%83%89%e3%81%ae%e4%bd%bf%e7%94%a8\">\u65b9\u6cd54: \u4e92\u63db\u30e2\u30fc\u30c9\u3067\u306eDELTREE\u30b3\u30de\u30f3\u30c9\u306e\u4f7f\u7528<\/h2>\n<p>DOS\u30e6\u30fc\u30b6\u30fc\u306b\u99b4\u67d3\u307f\u6df1\u3044\u5f93\u6765\u306e<code>DELTREE<\/code>\u30b3\u30de\u30f3\u30c9\u306fWindows\u306b\u306f\u542b\u307e\u308c\u3066\u3044\u307e\u305b\u3093\u304c\u3001\u305d\u306e\u6a5f\u80fd\u306f\u7c21\u5358\u306b\u30a8\u30df\u30e5\u30ec\u30fc\u30c8\u3067\u304d\u307e\u3059\u3002<code>DOSKEY<\/code>\u3067\u30de\u30af\u30ed\u3092\u4f5c\u6210\u3059\u308b\u3068\u3001<code>RMDIR<\/code>\u3092\u518d\u5e30\u8a2d\u5b9a\u3067\u77ed\u3044\u4e00\u8a00\u3067\u547c\u3073\u51fa\u305b\u308b\u3088\u3046\u306b\u306a\u308a\u3001\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u524a\u9664\u306e\u4f7f\u3044\u6163\u308c\u305f\u69cb\u6587\u304c\u5fa9\u5143\u3055\u308c\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u5f93\u6765\u306e\u300c\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u300d\u30bb\u30c3\u30b7\u30e7\u30f3\u3092\u958b\u304d\u307e\u3059\u3002<\/li>\n<li><code>DELTREE<\/code>\u3068\u3044\u3046\u5358\u8a9e\u3092<code>RMDIR \/S \/Q<\/code>\u30b3\u30de\u30f3\u30c9\u306b\u30d0\u30a4\u30f3\u30c9\u3059\u308b\u4e00\u6642\u30de\u30af\u30ed\u3092\u4f5c\u6210\u3057\u307e\u3059:DOSKEY:<\/li>\n<\/ul>\n<pre>DELTREE=RMDIR \/S \/Q $*<\/pre>\n<p>\u30b7\u30f3\u30dc\u30eb<code>$*<\/code>\u306f\u3001<code>DELTREE<\/code>\u306e\u5f8c\u306b\u6307\u5b9a\u3057\u305f\u3059\u3079\u3066\u306e\u5f15\u6570\u3092\u30de\u30af\u30ed\u306b\u6e21\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u3067\u3001\u78ba\u8a8d\u306a\u3057\u306e\u518d\u5e30\u7684\u306a\u30d5\u30a9\u30eb\u30c0\u524a\u9664\u306f\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3067\u5b9f\u884c\u3055\u308c\u307e\u3059:<\/p>\n<pre>DELTREE \"C:\\Path\\To\\Folder\"<\/pre>\n<p>\u3053\u306e\u30de\u30af\u30ed\u306f\u73fe\u5728\u306e\u30bb\u30c3\u30b7\u30e7\u30f3\u5185\u3067\u306e\u307f\u6709\u52b9\u3067\u3059\u3002\u30b3\u30f3\u30bd\u30fc\u30eb\u30a6\u30a3\u30f3\u30c9\u30a6\u3092\u9589\u3058\u308b\u3068\u3001\u4f5c\u6210\u3055\u308c\u305f\u30d0\u30a4\u30f3\u30c7\u30a3\u30f3\u30b0\u306f\u7121\u52b9\u306b\u306a\u308a\u307e\u3059\u3002\u6c38\u7d9a\u7684\u306a\u4f7f\u7528\u304c\u5fc5\u8981\u306a\u5834\u5408\u306f\u3001cmd.exe\u306e\u81ea\u52d5\u8aad\u307f\u8fbc\u307f\u30ec\u30b8\u30b9\u30c8\u30ea\u30d1\u30e9\u30e1\u30fc\u30bf\u306b\u30de\u30af\u30ed\u3092\u8a18\u8ff0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u3092\u4f7f\u3063\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u524a\u9664\u306f\u3001Windows\u7ba1\u7406\u306e\u57fa\u672c\u30b9\u30ad\u30eb\u3067\u3059\u3002GUI\u3092\u4f7f\u308f\u305a\u306b\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u3092\u8fc5\u901f\u306b\u30af\u30ea\u30a2\u3067\u304d\u307e\u3059\u3002\u3053\u3053\u3067\u306f\u3001\u5f93\u6765\u306e\u30b3\u30f3\u30bd\u30fc\u30eb\u30b3\u30de\u30f3\u30c9\u304b\u3089\u3001\u8a73\u7d30\u306a\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u3092\u5099\u3048\u305f\u9ad8\u5ea6 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"\u30d5\u30a9\u30eb\u30c0\u30fc\u3092\u300c\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u300d\u3067\u524a\u9664\u3059\u308b\u65b9\u6cd5 - Pasocore","description":"\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u3092\u4f7f\u3063\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u524a\u9664\u306f\u3001Windows\u7ba1\u7406\u306e\u57fa\u672c\u30b9\u30ad\u30eb\u3067\u3059\u3002GUI\u3092\u4f7f\u308f\u305a\u306b\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u3092\u8fc5\u901f\u306b\u30af\u30ea\u30a2\u3067\u304d\u307e\u3059\u3002\u3053\u3053\u3067\u306f\u3001\u5f93\u6765\u306e\u30b3\u30f3\u30bd\u30fc\u30eb\u30b3\u30de\u30f3\u30c9\u304b\u3089\u3001\u8a73\u7d30\u306a\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u3092\u5099\u3048\u305f\u9ad8\u5ea6\u306aPowerShell\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u307e\u3067\u3001\u6280\u8853\u7684\u306b\u6b63\u78ba\u306a\u624b\u6cd5\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002 \u65b9\u6cd51: RMDIR (R"},"footnotes":""},"categories":[8],"tags":[1320,1045,19,1313,1318,1321,1113,1317,20,1322,1316,1319,1314,1315,1149],"class_list":["post-339","post","type-post","status-publish","format-standard","hentry","category-comp","tag-administrative-tools","tag-command-line","tag-command-prompt","tag-delete-folder","tag-directory-deletion","tag-file-operations","tag-file-system","tag-folder-management","tag-powershell-commands","tag-powershell-scripting","tag-rd-command","tag-recursive-delete","tag-remove-directory","tag-rmdir-command","tag-windows-terminal"],"_links":{"self":[{"href":"https:\/\/pasocore.com\/index.php?rest_route=\/wp\/v2\/posts\/339","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pasocore.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pasocore.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pasocore.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pasocore.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=339"}],"version-history":[{"count":1,"href":"https:\/\/pasocore.com\/index.php?rest_route=\/wp\/v2\/posts\/339\/revisions"}],"predecessor-version":[{"id":340,"href":"https:\/\/pasocore.com\/index.php?rest_route=\/wp\/v2\/posts\/339\/revisions\/340"}],"wp:attachment":[{"href":"https:\/\/pasocore.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=339"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pasocore.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=339"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pasocore.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=339"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}