Click here to Skip to main content
15,890,185 members
Home / Discussions / C#
   

C#

 
GeneralRe: Chrome - search from command line? Pin
Alan Burkhart3-Mar-11 7:13
Alan Burkhart3-Mar-11 7:13 
GeneralRe: Chrome - search from command line? Pin
Luc Pattyn3-Mar-11 7:22
sitebuilderLuc Pattyn3-Mar-11 7:22 
GeneralRe: Chrome - search from command line? Pin
musefan3-Mar-11 6:50
musefan3-Mar-11 6:50 
GeneralRe: Chrome - search from command line? Pin
Alan Burkhart3-Mar-11 7:00
Alan Burkhart3-Mar-11 7:00 
AnswerRe: Chrome - search from command line? Pin
Luc Pattyn3-Mar-11 7:05
sitebuilderLuc Pattyn3-Mar-11 7:05 
GeneralRe: Chrome - search from command line? Pin
Alan Burkhart3-Mar-11 7:22
Alan Burkhart3-Mar-11 7:22 
QuestionModifying the Path Pin
AmbiguousName3-Mar-11 1:17
AmbiguousName3-Mar-11 1:17 
AnswerRe: Modifying the Path [modified] Pin
Luc Pattyn3-Mar-11 1:26
sitebuilderLuc Pattyn3-Mar-11 1:26 
overloaded Name wrote:
of course ... we need double backslash


No you don't. Backslash doubling is meaningful only to the compiler itself, it is how one says the next backslash is to be taken literally; once a string literal is compiled, all escape sequences have been interpreted and no double backslashes remain (unless you had 4 backslashes, which could be useful in a UNC).

FWIW: Your code, corrected so it compiles, but totally useless, would be:
string path = "d:\\songs\\audio\\asd.mp3";         // FIXED
string modifiedName = path.Replace("\\", "\\\\");  // this says: replace 1 backslash by 2 backslashes!


Smile | :)
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.

modified on Thursday, March 3, 2011 8:06 AM

GeneralRe: Modifying the Path Pin
mabo423-Mar-11 1:46
mabo423-Mar-11 1:46 
AnswerRe: Modifying the Path Pin
Luc Pattyn3-Mar-11 2:07
sitebuilderLuc Pattyn3-Mar-11 2:07 
QuestionHow to open an exported file through online docs when the user dont have a appropriate software in his desktop to open the file.. Pin
Rocky233-Mar-11 0:08
Rocky233-Mar-11 0:08 
Answerfirst... upload the file... Pin
edgartaor3-Mar-11 2:25
edgartaor3-Mar-11 2:25 
Questioncreate certificates programatically Pin
NarVish3-Mar-11 0:07
NarVish3-Mar-11 0:07 
AnswerRe: create certificates programatically Pin
Eddy Vluggen3-Mar-11 0:16
professionalEddy Vluggen3-Mar-11 0:16 
GeneralRe: create certificates programatically Pin
musefan3-Mar-11 0:27
musefan3-Mar-11 0:27 
GeneralRe: create certificates programatically Pin
Eddy Vluggen3-Mar-11 0:57
professionalEddy Vluggen3-Mar-11 0:57 
AnswerRe: create certificates programatically [modified] Pin
musefan3-Mar-11 0:16
musefan3-Mar-11 0:16 
GeneralRe: create certificates programatically [modified] Pin
NarVish3-Mar-11 0:45
NarVish3-Mar-11 0:45 
QuestionHelp for code Pin
Girish4812-Mar-11 22:19
Girish4812-Mar-11 22:19 
AnswerRe: Help for code Pin
Richard MacCutchan2-Mar-11 23:14
mveRichard MacCutchan2-Mar-11 23:14 
AnswerRe: Help for code Pin
Pravin Patil, Mumbai2-Mar-11 23:31
Pravin Patil, Mumbai2-Mar-11 23:31 
GeneralRe: Help for code Pin
Girish4812-Mar-11 23:41
Girish4812-Mar-11 23:41 
AnswerRe: Help for code [modified] Pin
musefan2-Mar-11 23:38
musefan2-Mar-11 23:38 
GeneralRe: Help for code Pin
Eddy Vluggen2-Mar-11 23:46
professionalEddy Vluggen2-Mar-11 23:46 
GeneralRe: Help for code Pin
musefan2-Mar-11 23:51
musefan2-Mar-11 23:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.