{"blog_url":"https://cafebreak.hatenablog.com/","image_url":"https://www11.a8.net/0.gif?a8mat=1NWF4B+CR1C1M+249K+BWGDT","version":"1.0","provider_url":"https://hatena.blog","title":"Powershell yyyymmdd\u306e\u65e5\u4ed8\u30d5\u30a9\u30eb\u30c0\u304c\u5b58\u5728\u3057\u306a\u3051\u308c\u3070\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u6210\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8","provider_name":"Hatena Blog","height":"190","type":"rich","categories":["\u30b9\u30af\u30ea\u30d7\u30c8"],"author_name":"merrywhite","published":"2025-01-11 00:00:00","url":"https://cafebreak.hatenablog.com/entry/2025/01/11/000000","author_url":"https://blog.hatena.ne.jp/merrywhite/","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcafebreak.hatenablog.com%2Fentry%2F2025%2F01%2F11%2F000000\" title=\"Powershell yyyymmdd\u306e\u65e5\u4ed8\u30d5\u30a9\u30eb\u30c0\u304c\u5b58\u5728\u3057\u306a\u3051\u308c\u3070\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u6210\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8 - CAFE BREAK\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_title":"CAFE BREAK","description":"\u65e5\u4ed8\u3092\u5909\u3048\u3066\u540c\u3058\u3088\u3046\u306a\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u5834\u5408\u3001\u6bce\u56de\u624b\u52d5\u3067\u65e5\u4ed8\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u6210\u3059\u308b\u306e\u304c\u9762\u5012\u306a\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002 \u305d\u306e\u4ed6\u3001\u5b9a\u671f\u5b9f\u884c\u3059\u308b\u30ed\u30b0\u3092\u65e5\u4ed8\u30d5\u30a9\u30eb\u30c0\u6bce\u306b\u683c\u7d0d\u3055\u305b\u305f\u3044\u5834\u5408\u306a\u3069\u306b\u3001yyyymmdd\u5f62\u5f0f\u3067\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u6210\u3059\u308b\u5834\u5408\u306b\u4fbf\u5229\u306apowershell\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u3059\u3002 \u307e\u305a\u3001\u65e5\u4ed8\u3092\u53d6\u5f97\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u3053\u3061\u3089\u3067\u3059\u3002\u5909\u6570\u306b\u683c\u7d0d\u3057\u307e\u3059\u3002 $get_date = Get-Date -Format \"yyyyMMdd\" \u7d9a\u3044\u3066\u53c2\u8003\u306b\u306a\u3063\u305f\u30b3\u30de\u30f3\u30c9\u60c5\u5831\u3067\u3059\u3002 $path = \"C:\\temp\\NewFolder\"If(!(test-path -PathType container $path)){ New-Ite\u2026"}