what is the difference between one backslash (\) and double backslashes (\\) when defining a path?
13 ビュー (過去 30 日間)
古いコメントを表示
Mohammad Abdolrahmani
2015 年 1 月 22 日
編集済み: Mohammad Abdolrahmani
2015 年 1 月 22 日
Dear All I am trying to understand a code written by an alumni. I found that for defining a data directory which is located on a server (not on the computer) the double backslashes was used in the beginning of the path definition. Something like DIR = '\\zserver\data'. I am wondering why \\ is used. I'd appreciate your comments. Bests MA
0 件のコメント
採用された回答
Mohammad Abouali
2015 年 1 月 22 日
編集済み: Mohammad Abouali
2015 年 1 月 22 日
that's how on windows machine the server is defined.
\\servername\shared_resource\subfolder_on_that\sub_sub_folder_in_that\and_so_on\myfile.something
so that way, the system knows that the name immediately after \\ is referring to the server name.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Startup and Shutdown についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!