Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 940651
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T21:59:27+00:00 2026-05-15T21:59:27+00:00

VS 2005 WinXP I am writing an application that will connect to a samba

  • 0

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 escape sequence

The path I am using is this:

string path = "\\Samba\sun005\admin_config\test.txt";

I have also tried the following using double backlashes:

string path = "\\Samba\\sun005\\admin_config\\test.txt";

However, the above compiles ok, but when it runs it complains "cannot find the path"

Also tried the following:

string path = @"\\Samba\sun005\admin_config\test.txt";

When I check in the debugger I get the following string

\\Samba\\sun005\\admin_config\\test.txt

I get access denied in my exception. Now that I am thinking about it. I haven’t set the username and password. I think that is my problem.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T21:59:27+00:00Added an answer on May 15, 2026 at 9:59 pm

    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"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

C# 2005. My application supports 2 langauges English and Thai. However, in my message
Since 2005, when Microsoft prevented HtmlHelp functioning off a network share, e.g.: \\appserver\tos\PointScanner.exe \\appserver\tos\PointScanner.chm
Using SQL Server 2005 I have a query that gets child records from bundles
I'm using SS 2005 if that I've seen sample code like DECLARE @restore =
I have an 2005 SSIS package that runs on a Windows 2003 Server hitting
In my SQL Server 2005 database, a user belongs to a role and that
C# 2005 SP3 Is it possible to retrieve the pervious upgradeCode that was used
C# 2005 I am using a background worker to process some login information. However,
I am using MSSQL 2005. I have StringIO object that contains my zip file
SQL Server 2005. In our application, we have an entity with a parent table

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.