{"width":"100%","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/mojeld/","height":"190","type":"rich","title":"C# \u5b9f\u884c\u30d5\u30a1\u30a4\u30eb\u30c7\u30a3\u30ec\u30af\u30c8\u30ea Path.GetDirectoryName","description":"C#\u3067\u3001\u5b9f\u884c\u6642\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u53d6\u5f97\u3059\u308b\u65b9\u6cd5 EXE\u7d76\u5bfe\u30d1\u30b9 String _location = System.Reflection.Assembly.GetEntryAssembly().Location; \u4e0a\u8a18\u3067\u3001exe\u30d5\u30a1\u30a4\u30eb\u306e\u7d76\u5bfe\u30d1\u30b9\u4ed8\u304d\u3067\u8fd4\u3063\u3066\u304d\u307e\u3059\u3002 \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u540d\u3060\u3051\u53d6\u308a\u51fa\u3059 String _dname = Path.GetDirectoryName(_location); _location\u306fexe\u30d5\u30a1\u30a4\u30eb\u306e\u7d76\u5bfe\u30d1\u30b9\u3068\u3057\u3066\u3044\u307e\u3059\u3002 \u30d7\u30ed\u30bb\u30b9\u540d\u8868\u793a System.Diagnostics.Process.GetCurrentProcess().ProcessName \u5b9f\u884c\u3057\u3066\u3044\u308b\u30d7\u30ed\u2026","url":"https://mojelder.hatenablog.com/entry/PathChangeExtension","author_name":"mojeld","provider_url":"https://hatena.blog","blog_title":"\u30c8\u30eb\u30cd\u30fc\u30c9","published":"2019-09-30 15:30:24","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/m/mojeld/20190930/20190930153410.png","blog_url":"https://mojelder.hatenablog.com/","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmojelder.hatenablog.com%2Fentry%2FPathChangeExtension\" title=\"C# \u5b9f\u884c\u30d5\u30a1\u30a4\u30eb\u30c7\u30a3\u30ec\u30af\u30c8\u30ea Path.GetDirectoryName - \u30c8\u30eb\u30cd\u30fc\u30c9\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["C#"]}