TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
dc
NA
663
0
C# directory path name contains invalid character
Nov 19 2012 11:09 AM
In a C# 2008 application, I want this program to point to a executable that it needs to run called 'client.exe' as indicated by the app.config file value I listed below. My problem is the part of the directory path called 'co1 & co2' has an illegal charcter in it which is the '&' part. The production location has this name in it.
Thus can you tell me how to change the '&' part of 'co1 & co2' so that the & will be a valid part of the directory path?
Here is the app.config file I am referring to:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="client_location" value="C:\Program Files (x86)\co1 & co2\client.exe" />
</appSettings>
</configuration>
Reply
Answers (
2
)
Load .XML file into sql datatable using data table logic in c#.net
Tool to Validate ePub