Unrecognized escape sequence

前端 未结 2 747
误落风尘
误落风尘 2020-12-21 03:55

VS 2005 WinXP

I am writing an application that will connect to a samba share.

However, in my path I am getting an compile error:

unrecognized es         


        
2条回答
  •  时光取名叫无心
    2020-12-21 04:29

    A UNC path should just include the machine name, the share name, an the path relative to the share point (inclusion of a "samba" scheme is not necessary). In the case of the machine name being sun005, either of the two following should work:

    "\\\\sun005\\admin_config\\test.txt"
    @"\\sun005\admin_config\test.txt"
    

提交回复
热议问题