{"id":118439,"date":"2024-01-31T11:26:45","date_gmt":"2024-01-31T02:26:45","guid":{"rendered":"https:\/\/softantenna.com\/blog\/?p=118439"},"modified":"2024-01-31T11:26:45","modified_gmt":"2024-01-31T02:26:45","slug":"windows-slash-path-separator","status":"publish","type":"post","link":"https:\/\/softantenna.com\/blog\/windows-slash-path-separator\/","title":{"rendered":"Windows\u306f\u3044\u3064\u304b\u3089\u30b9\u30e9\u30c3\u30b7\u30e5\u3092\u30d1\u30b9\u533a\u5207\u308a\u6587\u5b57\u3068\u3057\u3066\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u305f\u306e\u304b\uff1f"},"content":{"rendered":"<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2024\/01\/s_20240131_105827.jpg\" alt=\"S 20240131 105827\" title=\"s_20240131_105827.jpg\" border=\"0\" width=\"1038\" height=\"642\" \/><\/p>\n<p>Windows\u306f\u30d1\u30b9\u306e\u533a\u5207\u308a\u6587\u5b57\u3068\u3057\u3066\u300c<code>\\<\/code>(\u30d0\u30c3\u30af\u30b9\u30e9\u30c3\u30b7\u30e5)\u300d\u3092\u63a1\u7528\u3057\u3066\u3044\u308b\u4e8b\u306f\u3088\u304f\u77e5\u3089\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u300c<code>\/<\/code>(\u30b9\u30e9\u30c3\u30b7\u30e5)\u300d\u3092\u63a1\u7528\u3057\u3066\u3044\u308bmacOS\u3084Linux\u3068\u306f\u7570\u306a\u308a\u3001\u3055\u3089\u306b\u65e5\u672c\u3067\u306f\u300c<code>\uffe5<\/code>(\u5186\u8a18\u53f7)\u300d\u3068\u3057\u3066\u8868\u793a\u3055\u308c\u308b\u3053\u3068\u304b\u3089\u3001\u3053\u308c\u3092\u5acc\u3063\u3066\u3044\u308b\u30e6\u30fc\u30b6\u30fc\u3082\u591a\u6570\u5b58\u5728\u3057\u307e\u3059\u304c\u3001\u5b9f\u306fWindows\u306f\u30d1\u30b9\u306e\u533a\u5207\u308a\u6587\u5b57\u3068\u3057\u3066\u300c<code>\/<\/code>(\u30b9\u30e9\u30c3\u30b7\u30e5)\u300d\u3082\u8a8d\u8b58\u3059\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>Windows\u304c\u3044\u3064\u304b\u3089\u30b9\u30e9\u30c3\u30b7\u30e5\u3092\u30d5\u30a1\u30a4\u30eb\u306e\u533a\u5207\u308a\u6587\u5b57\u3068\u3057\u3066\u8a8d\u8b58\u3057\u3066\u3044\u305f\u306e\u304b\u306b\u95a2\u3059\u308b\u8b70\u8ad6\u304c<a href=\"https:\/\/retrocomputing.stackexchange.com\/questions\/28344\/since-when-does-windows-support-forward-slash-as-path-separator\">Stack Exchange<\/a>\u3067\u884c\u308f\u308c\u3001\u300c<strong>MS-DOS 2.0\u4ee5\u964d\u3067\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u305f<\/strong>\u300d\u306a\u3069\u306e\u8208\u5473\u6df1\u3044\u60c5\u5831\u304c\u5bc4\u305b\u3089\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u8cea\u554f\u8005\u306fMicrosoft\u306e<a href=\"https:\/\/learn.microsoft.com\/en-us\/dotnet\/api\/system.io.path.directoryseparatorchar?view=net-8.0\">\u516c\u5f0f\u30b5\u30dd\u30fc\u30c8\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/a>\u306e\u8aac\u660e\u3092\u5f15\u7528\u3057\u3001Windows\u304c\u3044\u3064\u304b\u3089\u30d5\u30a9\u30ef\u30fc\u30c9\u30b9\u30e9\u30c3\u30b7\u30e5(\u666e\u901a\u306e\u30b9\u30e9\u30c3\u30b7\u30e5)\u3092\u30b5\u30dd\u30fc\u30c8\u3059\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u306e\u304b\u3092\u8cea\u554f\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>Microsoft\u306e<code>Path.DirectorySeparatorChar<\/code>\u306e\u8aac\u660e:<\/p>\n<blockquote><p>\nNote that Windows supports either the forward slash (which is returned by the AltDirectorySeparatorChar field) or the backslash (which is returned by the DirectorySeparatorChar field) as path separator characters, while Unix-based systems support only the forward slash.<\/p>\n<p>Windows\u3067\u306f\u3001\u30d1\u30b9\u533a\u5207\u308a\u6587\u5b57\u3068\u3057\u3066\u30d5\u30a9\u30ef\u30fc\u30c9\u30fb\u30b9\u30e9\u30c3\u30b7\u30e5(AltDirectorySeparatorChar\u30d5\u30a3\u30fc\u30eb\u30c9\u304c\u8fd4\u3059)\u3068\u30d0\u30c3\u30af\u30b9\u30e9\u30c3\u30b7\u30e5\uff08DirectorySeparatorChar\u30d5\u30a3\u30fc\u30eb\u30c9\u304c\u8fd4\u3059)\u306e\u3069\u3061\u3089\u304b\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u308b\u304c\u3001Unix\u30d9\u30fc\u30b9\u306e\u30b7\u30b9\u30c6\u30e0\u3067\u306f\u30d5\u30a9\u30ef\u30fc\u30c9\u30b9\u30e9\u30c3\u30b7\u30e5\u306e\u307f\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u308b\u3053\u3068\u306b\u6ce8\u610f\u3002\n<\/p><\/blockquote>\n<p>\u3053\u308c\u306b\u5bfe\u3057\u3066\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u56de\u7b54\u304c\u884c\u308f\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li>DOS 2.0\u4ee5\u964d\u306f\u4e21\u65b9\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u305f\u305f\u3081\u3001\u3059\u3079\u3066\u306eDOS\u306e\u6a5f\u80fd\u306f\u3069\u3061\u3089\u306e\u65b9\u6cd5\u3067\u3082\u6b63\u3057\u304f\u52d5\u4f5c\u3059\u308b<\/li>\n<li>\u65b0\u3057\u3044Windows\u30d0\u30fc\u30b8\u30e7\u30f3\uff08NT\u4ee5\u964d\uff09\u306f\u305d\u306e\u52d5\u4f5c\u3092\u30b3\u30d4\u30fc\u3057\u305f\u3002<\/li>\n<li>Windows\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306f\u3001\u30d5\u30a1\u30a4\u30eb\u540d\u306e\u30d1\u30fc\u30b9\u6642\u306b\u3001\u5e38\u306b\u305d\u306e\u6319\u52d5\u306b\u5f93\u3046\u3068\u306f\u9650\u3089\u305a\u3001\u3069\u3061\u3089\u304b\u3092\u53d7\u3051\u5165\u308c\u308b\u5834\u5408\u3082\u3042\u308c\u3070\u3001\u53d7\u3051\u5165\u308c\u306a\u3044\u5834\u5408\u3082\u3042\u308b\u3002<\/li>\n<\/ul>\n<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2024\/01\/M7Gyg.jpg\" alt=\"M7Gyg\" title=\"M7Gyg.jpg\" border=\"0\" width=\"1163\" height=\"277\" \/><\/p>\n<p>\u25b2MS-DOS 2.0\u3067\u30b9\u30e9\u30c3\u30b7\u30e5\u3067\u533a\u5207\u3089\u308c\u305f\u30d1\u30b9\u3092\u6307\u5b9a\u3057\u3066\u3001\u30e1\u30e2\u5e33\u3092\u958b\u304f\u69d8\u5b50\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u56de\u7b54\u304c\u6b63\u3057\u3051\u308c\u3070\u3001DOS\u3084Windows\u81ea\u4f53\u306f\u30b9\u30e9\u30c3\u30b7\u30e5\u3092\u53d7\u3051\u4ed8\u3051\u308b\u3082\u306e\u306e\u3001Windows\u4e0a\u3067\u52d5\u4f5c\u3059\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306f\u30b9\u30e9\u30c3\u30b7\u30e5\u3067\u533a\u5207\u3089\u308c\u305f\u30d1\u30b9\u6587\u5b57\u5217\u3092\u6b63\u3057\u304f\u6271\u3048\u306a\u3044\u3053\u3068\u3082\u3042\u308b\u305f\u3081\u3001\u6ce8\u610f\u304c\u5fc5\u8981\u3068\u3044\u3046\u3053\u3068\u306b\u306a\u308a\u3042\uff4d\u3059\u3002<\/p>\n<p><a href=\"https:\/\/news.ycombinator.com\/item?id=39174685\">Hacker News<\/a>\u306b\u3082\u3001CMD.EXE\u306f\u4e21\u65b9\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u308b\u304c\u3001COMMAND.COM\u306f\u30b9\u30e9\u30c3\u30b7\u30e5\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u306a\u3044\u306a\u3069\u3001\u8ffd\u52a0\u306e\u60c5\u5831\u304c\u5bc4\u305b\u3089\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Windows\u306f\u30d1\u30b9\u306e\u533a\u5207\u308a\u6587\u5b57\u3068\u3057\u3066\u300c\\(\u30d0\u30c3\u30af\u30b9\u30e9\u30c3\u30b7\u30e5)\u300d\u3092\u63a1\u7528\u3057\u3066\u3044\u308b\u4e8b\u306f\u3088\u304f\u77e5\u3089\u308c\u3066\u3044\u307e\u3059\u3002 \u300c\/(\u30b9\u30e9\u30c3\u30b7\u30e5)\u300d\u3092\u63a1\u7528\u3057\u3066\u3044\u308bmacOS\u3084Linux\u3068\u306f\u7570\u306a\u308a\u3001\u3055\u3089\u306b\u65e5\u672c\u3067\u306f\u300c\uffe5(\u5186\u8a18\u53f7)\u300d\u3068\u3057\u3066\u8868\u793a\u3055\u308c\u308b\u3053 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":118440,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[3],"tags":[3298,2701,4387],"class_list":["post-118439","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-windows","tag-windows","tag-windows10","tag-windows11"],"_links":{"self":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/118439","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/comments?post=118439"}],"version-history":[{"count":0,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/118439\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media\/118440"}],"wp:attachment":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media?parent=118439"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/categories?post=118439"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/tags?post=118439"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}