{"id":1333,"date":"2012-12-18T13:08:44","date_gmt":"2012-12-18T04:08:44","guid":{"rendered":"http:\/\/soundengine.jp\/wordpress\/tips\/?p=1333"},"modified":"2014-02-06T23:42:22","modified_gmt":"2014-02-06T14:42:22","slug":"%e3%83%8d%e3%83%83%e3%83%88%e3%83%af%e3%83%bc%e3%82%af%e4%b8%8a%e3%81%ae%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%82%92%e3%83%af%e3%82%a4%e3%83%89%e6%96%87%e5%ad%97%e3%81%ae%e3%83%91%e3%82%b9%e3%81%a7","status":"publish","type":"post","link":"https:\/\/soundengine.jp\/wordpress\/tips\/try\/1333\/","title":{"rendered":"\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u5171\u6709\u306e\u30d5\u30a1\u30a4\u30eb\u3092Unicode(\u30ef\u30a4\u30c9\u6587\u5b57)\u306e\u30d1\u30b9\u3067\u30a2\u30af\u30bb\u30b9\u3059\u308b\u65b9\u6cd5(UNC)"},"content":{"rendered":"<p>Windows\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3067CopyFile\u3092\u4f7f\u7528\u3068\u3057\u3066\u3044\u3066\u3069\u3046\u3082\u3046\u307e\u304f\u3044\u304b\u306a\u3044\u5834\u5408\u3042\u3063\u3066\u3001\u4eca\u56de\u3082\u305d\u308c\u306b\u3076\u3061\u5f53\u305f\u3063\u305f\u306e\u3067\u4eca\u5f8c\u306e\u30e1\u30e2\u306b\u66f8\u3044\u3066\u304a\u304d\u307e\u3059\u3002<br \/>\n<!--more--><br \/>\n\u524d\u63d0\u3068\u3057\u3066\u3001<a href=\"http:\/\/d.hatena.ne.jp\/srkzhr\/20090617\/1245254444\">UTF-8\u306b\u304a\u3051\u308b\u5168\u89d2\u30de\u30a4\u30ca\u30b9\u3068\u5168\u89d2\u30c1\u30eb\u30c0\u306e\u554f\u984c\uff08\uff1d\u3044\u308f\u3086\u308b\u300c\u6ce2\u30c0\u30c3\u30b7\u30e5\u554f\u984c\u300d\uff09 &#8211; \u534a\u5f845\u30e1\u30fc\u30c8\u30eb<\/a>\u3068\u3044\u3046\u306e\u304c\u3042\u308a\u307e\u3059\u3002Windows\u3060\u3068UTF-8\u306e\uff5e\u304c\u5316\u3051\u3066\u3057\u307e\u3046\u3068\u306e\u3053\u3068\u3002<\/p>\n<p>\u3067\u3001SJIS\u3067\u306f\u306a\u304fUnicode(UTF-16)\u3060\u3068OK\u305d\u3046\u306a\u3093\u3067\u3001\u30d1\u30b9\u3092\u3053\u306eUnicode\u3067\u66f8\u3051\u3070\u3044\u3044\u306e\u3067\u3059\u3051\u3069\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u4e0a\u3060\u3068\u3084\u305f\u3089\u30d1\u30b9\u304c\u9577\u304f\u306a\u308b\u306e\u304b\u4f55\u304b\u77e5\u308a\u307e\u305b\u3093\u304c\u3069\u3046\u3082\u3084\u3063\u3071\u308a\u30a8\u30e9\u30fc\u306b\u306a\u308b\u3068\u3044\u3046\u3053\u3068\u3067\u3001<span class=\"p_caption\">\u30ef\u30a4\u30c9\u6587\u5b57\u3067\u66f8\u3051\u3070\u30d1\u30b9\u304c\u7d0432,000\u30ef\u30a4\u30c9\u6587\u5b57\u306b\u62e1\u5f35\u3067\u304d\u308b<\/span>\u3068\u306e\u3053\u3068\u3067\u65e9\u901f\u3084\u3063\u3066\u307f\u305f\u3002<\/p>\n<p>\u307e\u305a\u306f\u57fa\u672c\u3002<\/p>\n<p>[c language=&#8221;++&#8221;]<br \/>\nCopyFileW( L&amp;quot;D:\\\\\uff5e.wav&amp;quot;, L&amp;quot;D:\\\\\uff5e1.wav&amp;quot;, TRUE );<br \/>\n[\/c]<\/p>\n<p>\u3067\u3001\u30ef\u30a4\u30c9\u6587\u5b57\u62e1\u5f35\u300c<span class=\"p_caption\">\\\\?\\<\/span>\u300d\u3092\u5148\u982d\u306b\u633f\u5165<\/p>\n<p>[c language=&#8221;++&#8221;]<br \/>\nCopyFileW( L&amp;quot;\\\\\\\\?\\\\D:\\\\\uff5e.wav&amp;quot;, L&amp;quot;\\\\\\\\?\\\\D:\\\\\uff5e1.wav&amp;quot;, TRUE );<br \/>\n[\/c]<\/p>\n<p>\u3053\u3053\u307e\u3067\u306fOk\u306a\u3093\u3060\u3051\u3069\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u30d1\u30b9\u306b\u306a\u308b\u3068\u3069\u3046\u3082\u3060\u3081\u3067\u3001<\/p>\n<p>[c language=&#8221;++&#8221;]<br \/>\nCopyFileW( L&amp;quot;\\\\\\\\?\\\\\\\\\\\\127.0.0.1\\\\share\\\\\uff5e.wav&amp;quot;, L&amp;quot;\\\\\\\\?\\\\D:\\\\\uff5e1.wav&amp;quot;, TRUE );<br \/>\n[\/c]<\/p>\n<p>GetLastError\u3067\u8abf\u3079\u305f\u3068\u3053\u308d\u3001<\/p>\n<blockquote><p>ERROR_INVALID_NAME\t123\t0x0000007B\t\u30d5\u30a1\u30a4\u30eb\u540d\u3001\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u540d\u3001\u307e\u305f\u306f\u30dc\u30ea\u30e5\u30fc\u30e0 \u30e9\u30d9\u30eb\u306e\u69cb\u6587\u304c\u9593\u9055\u3063\u3066\u3044\u307e\u3059\u3002<\/p><\/blockquote>\n<p>\u3068\u3044\u3046\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u304f\u308b\u3002\u4f55\u304b\u9593\u9055\u3048\u3066\u3044\u308b\u306e\u304b\u306a\u3068\u91cd\u3044\u3001CopyFile\u306e\u30da\u30fc\u30b8\u3092\u898b\u308b\u3068\u3001\u300cMSDN \u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u300c\u300d\uff08\u30d5\u30a1\u30a4\u30eb\u540d\u306e\u898f\u5247\uff09\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u300d\u3068\u66f8\u3044\u3066\u3044\u308b\u3082\u306e\u306e\u3001\u4e00\u4f53\u3069\u3053\u3092\u53c2\u7167\u3059\u308c\u3070\u3044\u3044\u306e\u304b\u56f0\u308b\u81ea\u4f53\u306b\u3001\u3001\u3001<\/p>\n<p>\u3067\u3001\u3053\u306e\u30da\u30fc\u30b8\u3092\u63a2\u3057\u3066\u3044\u305f\u3068\u3053\u308d\u3069\u3046\u3084\u3089MSDN\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u5f8c\u306e\u300c\u300d\u5185\u306f\u3001<span class=\"p_caption\">File Name Conventions<\/span>\u3068\u3044\u3046\u6587\u5b57\u3060\u3068\u3044\u3046\u3053\u3068\u304c\u308f\u304b\u308a\u3001\u305d\u308c\u3092\u63a2\u3057\u3066\u3044\u305f\u3068\u3053\u308d\u3001<a href=\"http:\/\/kozhouse.homeip.net\/TIPS\/longfilename\/\">TIPS\/\u9577\u3044\u30d5\u30a1\u30a4\u30eb\u540d &#8211; KOZ\u306e\u9928 &#8211; Visual Basic Programming &#8211;<\/a>\u306e\u30da\u30fc\u30b8\u305f\u3069\u308a\u7740\u304f\u3002<\/p>\n<p>\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30d1\u30b9\u306e\u5834\u5408\u3001<\/p>\n<blockquote><p>UNC\u540d(\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30d5\u30a1\u30a4\u30eb\u540d)\u306b\u5bfe\u3057\u3066\u306f\u3001\u300c<span class=\"p_caption\">\u00a5\u00a5?\u00a5UNC\u00a5<\/span>\u300d\u3092\u4ed8\u52a0\u3059\u308b\n<\/p><\/blockquote>\n<p>\u3068\u306e\u3053\u3068\u3002\u3067\u3001\u300c\\\\127.0.0.1\u300d\u306e\u524d\u306b\u3064\u3051\u308b\u3060\u3051\u3067\u306a\u304f\u3001\u6700\u521d\u306e\u300c\\\\\u300d\u3092\u53d6\u308b\u3053\u3068\u3068\u306e\u3053\u3068\u3002\u7d50\u679c\u7684\u306b\u3001\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3067\u52d5\u304f\u3088\u3046\u3060\u3002<\/p>\n<p>[c language=&#8221;++&#8221;]<br \/>\nCopyFileW( L&amp;quot;\\\\\\\\?\\\\UNC\\\\127.0.0.1\\\\share\\\\\uff5e.wav&amp;quot;, L&amp;quot;\\\\\\\\?\\\\D:\\\\\uff5e1.wav&amp;quot;, TRUE );<br \/>\n[\/c]<\/p>\n<p>UNC\u3063\u3066\u306a\u3093\u3060\u308d\u3046\uff5e\u3063\u3066\u8abf\u3079\u3066\u305f\u3068\u3053\u308d\u3001<a href=\"http:\/\/e-words.jp\/w\/UNC.html\">UNC\u3068\u306f\u3010Universal Naming Convention\u3011 &#8211; \u610f\u5473\/\u89e3\u8aac\/\u8aac\u660e\/\u5b9a\u7fa9 \uff1a IT\u7528\u8a9e\u8f9e\u5178<\/a>\u3067\u8a00\u3063\u3066\u3044\u308b\u3088\u3046\u306bUniversal Naming Convention\u306e\u3088\u3046\u3060\u3002<\/p>\n<p>\u307e\u305f\u3001PHP\u3067\u3053\u306e\u6ce2\u30c0\u30c3\u30b7\u30e5\u300c\uff5e\u300d\u3092\u5909\u63db\u3057\u3066\u3044\u308b\u4eba\u3082\u3044\u308b\u3088\u3046\u3060\u3002<a href=\"http:\/\/d.hatena.ne.jp\/tamamo-ch\/20090730\">\u6ce2\u30c0\u30c3\u30b7\u30e5\u5bfe\u7b56 &#8211; \u3053\u3053\u306b\u304a\u3044\u3066\u304a\u304f\u306d.php\uff1e(\ufffd\u30fb\u25bd\u30fb\uff40)<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Windows\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3067CopyFile\u3092\u4f7f\u7528\u3068\u3057\u3066\u3044\u3066\u3069\u3046\u3082\u3046\u307e\u304f\u3044\u304b\u306a &hellip; <a href=\"https:\/\/soundengine.jp\/wordpress\/tips\/try\/1333\/\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-1333","post","type-post","status-publish","format-standard","hentry","category-try"],"_links":{"self":[{"href":"https:\/\/soundengine.jp\/wordpress\/tips\/wp-json\/wp\/v2\/posts\/1333","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/soundengine.jp\/wordpress\/tips\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/soundengine.jp\/wordpress\/tips\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/soundengine.jp\/wordpress\/tips\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/soundengine.jp\/wordpress\/tips\/wp-json\/wp\/v2\/comments?post=1333"}],"version-history":[{"count":23,"href":"https:\/\/soundengine.jp\/wordpress\/tips\/wp-json\/wp\/v2\/posts\/1333\/revisions"}],"predecessor-version":[{"id":3182,"href":"https:\/\/soundengine.jp\/wordpress\/tips\/wp-json\/wp\/v2\/posts\/1333\/revisions\/3182"}],"wp:attachment":[{"href":"https:\/\/soundengine.jp\/wordpress\/tips\/wp-json\/wp\/v2\/media?parent=1333"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/soundengine.jp\/wordpress\/tips\/wp-json\/wp\/v2\/categories?post=1333"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/soundengine.jp\/wordpress\/tips\/wp-json\/wp\/v2\/tags?post=1333"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}