What is the difference between \ and \\ in file path
问题 What is the difference between single slash and double slash in file path for Windows operating system such as c:\\Personal\MyFolder\\MyFile.jpg and c:\Personal\MyFolder\MyFile.jpg What if I use the single or double slash because I have tried both for storing images in my code (in webconfig file) and both of them work fine. Is there any difference?? 回答1: Windows ignores double backslashes. So while the second syntax with \ is correct and you should use that one, the first with \\ works too.