>This is a C# line:
>
>
>GetFreeSpace(@"\\\\myserverName\\d$");
>
>
>No converter on the net seems to be able to convert that line. What does the @ stands for anyway?
When a string literal is prefixed with @ then it can span several lines and treated as is with spaces (like VFP's text...endtext) but more importantly escape characters are handled differently. ie:
Without a @ \ in a path string should be escaped ( escape char is \ so it should be \\ when you mean a backslash ).
strPath = "c:\\myFolder\\myFile.txt"
is equivalant to:
strPath = @"c:\myFolder\myFile.txt" ( w/o @ this would lead to error \m is not a recognized escape sequence - there are a series of known sequences like:
\n = newline
\t = tab
\" = doublequotes
\r = carriage return
...)
So I think in your sample it was a typo to put @ there. It'd be interpreted as:
\\\\myserverName\\d$
When it should be:
\\myserverName\d$
Etiher remove @ or rewrite as:
GetFreeSpace(@"\\myserverName\d$");
Cetin