• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 637
  • Last Modified:

C# Accessing a network path

I have a database network path stored in an app config file.  But I'm having an  issue once this path is put to a variable.  If not in a variable, it works fine.

This works:
@"\\10.252.5.44\pc2fin\...\dealer.mdb"

But, once in a variable, this does not work:
@databasePath  

I've tried adding the extra slashes in the app config file but that doesn't work either.
0
carsRST
Asked:
carsRST
1 Solution
 
milindsmCommented:
If you have extra slashes anyway then there is no need of @databasePath  just use databasePath  

 
0
 
carsRSTAuthor Commented:
Coding error on my end as well
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now