@

  • Thread starter Thread starter rn5a
  • Start date Start date
R

rn5a

I have come across a few posts wherein I have seen that a file path is
preceded by a '@' (without the quotes), something like

Dim FilePath As String
FilePath = @"C:\windows\System32\Folder1\"

What does '@' signify here? Why is the file path being preceded by '@'?

Also can someone please tell me what does UNC stand for & what does it
exactly do or what is it meant for?
 
I have come across a few posts wherein I have seen that a file path is
preceded by a '@' (without the quotes), something like

Dim FilePath As String
FilePath = @"C:\windows\System32\Folder1\"

What does '@' signify here? Why is the file path being preceded by '@'?

@ makes a string into a string literal i.e. it is not escaped:
http://www.c-sharpcorner.com/Upload...terals11262005010742AM/verbatim_literals.aspx
Also can someone please tell me what does UNC stand for & what does it
exactly do or what is it meant for?

Google is your friend:
http://www.google.co.uk/search?sour...ls=GGLG,GGLG:2006-28,GGLG:en&q=unc+definition
 
Back
Top