Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Conditional Statements in app.config

Status
Not open for further replies.

vbajock

Programmer
Jun 8, 2001
1,921
US
On a network that has both 32 and 64 bit machines, I am having to edit the app.config files to deal with this:


<add key="ConnAccessDir" value="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Program Files (x86)\SomeDir\SomeAccessDbDir\" />

which I have to manually change to this:

<add key="ConnAccessDir" value="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Program Files\SomeDir\SomeAccessDbDir\" />

on 32 bit machines.

Is there a way to do this with a conditional statement of some sort?

Thanks in advance for your help!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top