473,385 Members | 1,312 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

double or single \\ in config file

when writing to config file, should i use c:\\temp\\myapp.log or c:
\temp\myapp.log in the config file. It seems that all dotnetter say
to use the first, but the whole world doesn't create config files with
the first style. please help.

Apr 13 '07 #1
3 2813
the "\\" way is safest way.
It also works in places where you could just use "\"

Windows Application config files require "\\"
Web.Config for Asp.Net will work just fine with "\" or "\\"

On Apr 13, 9:17 am, daniel.serr...@citigroup.com wrote:
when writing to config file, should i use c:\\temp\\myapp.log or c:
\temp\myapp.log in the config file. It seems that all dotnetter say
to use the first, but the whole world doesn't create config files with
the first style. please help.

Apr 13 '07 #2
<da************@citigroup.comwrote in message
news:11**********************@y80g2000hsf.googlegr oups.com...
when writing to config file, should i use c:\\temp\\myapp.log or c:
\temp\myapp.log in the config file. It seems that all dotnetter say
to use the first, but the whole world doesn't create config files with
the first style. please help.
I just us a forward slash (/) instead. Windows will interpret it
correctly and you don't have to worry about escaping thing

Bill
Apr 13 '07 #3
On Apr 13, 10:17 am, daniel.serr...@citigroup.com wrote:
when writing to config file, should i use c:\\temp\\myapp.log or c:
\temp\myapp.log in the config file. It seems that all dotnetter say
to use the first, but the whole world doesn't create config files with
the first style. please help.
Use the second one... you only need the first if you're hard coding a
string into your application.

Apr 13 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Mikheil | last post by:
Hello! I need to translate file destination name with one backslashes "c:\program files\directory\file.txt" to string containing double backslashes "c:\\program files\\directory\\file.txt" If...
4
by: Venkat | last post by:
Hi All, I need to copy strings from a single dimensional array to a double dimensional array. Here is my program. #include <stdio.h> #include <stdlib.h>
1
by: OZ | last post by:
the serproxy claim itself a multi-thread proxy thing. I have sent email to write the original writer and there is no replay after 3 weeks. my configuration and setting are good. ...
5
by: BPearson | last post by:
Hello I would like to have several sites share a single web.config file. To accomplish this, I would point the root of these sites to the same folder. Is there any reason why I might not want to...
6
by: Benjamin Janecke | last post by:
Hi, I have to call a java-written soap webservice from a .NET client application. Unfortunately, the URL contains of a double slash "//", as u can see in this example: ...
4
by: Justin Fancy | last post by:
Hi everyone, I need to replace all instances of a double quote(") with two single quotes('') in a text file. I already have some replacements of strings going on, but I tried this one, but the...
1
by: Matt F | last post by:
Two of the projects in my solution that both need to use a common user.config file. This is a data application - the executable that is created with the first project is the primary executable...
23
by: dkirkdrei | last post by:
I am having a bit of trouble trying to double up on slashes in a file path. What I am trying to do is very similar to the code below: <? $var =...
6
by: Joseph Stateson | last post by:
I just started calling a php module from html. I added "php rocket" from microsoft to FP2003 but dont think that is the cause. The problem is that I am getting a backslash before a double or...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.