{"id":49,"date":"2016-09-27T18:37:43","date_gmt":"2016-09-27T09:37:43","guid":{"rendered":"http:\/\/okamurax.com\/?p=49"},"modified":"2016-09-27T18:37:43","modified_gmt":"2016-09-27T09:37:43","slug":"c-%e5%bd%93%e6%97%a5%e3%81%ae%e6%97%a5%e4%bb%98%e3%81%ae%e3%83%95%e3%82%a9%e3%83%ab%e3%83%80%e3%82%92%e4%bd%9c%e6%88%90","status":"publish","type":"post","link":"https:\/\/appbay.org\/?p=49","title":{"rendered":"C# \u5f53\u65e5\u306e\u65e5\u4ed8\u306e\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u6210"},"content":{"rendered":"\n<pre class=\"lang:c# decode:true \" >using System;\r\nusing System.Collections.Generic;\r\nusing System.Linq;\r\nusing System.Text;\r\nusing System.Threading.Tasks;\r\n\r\nusing System.IO;\r\nusing System.Diagnostics;\r\n\r\nnamespace \u5f53\u65e5\u30d5\u30a9\u30eb\u30c0\u4f5c\u6210\r\n{\r\n    class Program\r\n    {\r\n        static void Main(string[] args)\r\n        {\r\n            string dir_path = @\"D:\\Dropbox\\My Cloud Work\\Text\\Project\\\" + DateTime.Now.ToString(\"yyyyMMdd\");\r\n            if(Directory.Exists(dir_path))\r\n            {\r\n                Process.Start(dir_path);\r\n            }\r\n            else\r\n            {\r\n                Console.WriteLine(\"\u30d5\u30a9\u30eb\u30c0\u304c\u5b58\u5728\u3057\u307e\u305b\u3093\u3002\u4f5c\u6210\u3057\u307e\u3059\u304b\uff1f\");\r\n                string yn = Console.ReadLine();\r\n                if (yn == \"y\")\r\n                {\r\n                    Directory.CreateDirectory(dir_path);\r\n                    File.Create(dir_path + \"\\\\\" + DateTime.Now.ToString(\"yyyyMMdd\") + \".txt\");\r\n                    Process.Start(dir_path);\r\n                }\r\n            }\r\n\r\n        }\r\n    }\r\n}\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.T &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/appbay.org\/?p=49\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;C# \u5f53\u65e5\u306e\u65e5\u4ed8\u306e\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u6210&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[9],"class_list":["post-49","post","type-post","status-publish","format-standard","hentry","category-1","tag-c-net"],"_links":{"self":[{"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/posts\/49","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/appbay.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=49"}],"version-history":[{"count":1,"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/posts\/49\/revisions"}],"predecessor-version":[{"id":50,"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/posts\/49\/revisions\/50"}],"wp:attachment":[{"href":"https:\/\/appbay.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=49"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/appbay.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=49"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/appbay.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=49"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}