Link to home
Create AccountLog in
Avatar of curiouswebster
curiouswebsterFlag for United States of America

asked on

What prefix do I need when trying to access a remote machine, using C#?

I have a machine name and folder on a remote machine.

What syntax do I use in the filename to reference that remote machine.

newbieweb
ASKER CERTIFIED SOLUTION
Avatar of imateyelectronics
imateyelectronics
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Avatar of curiouswebster

ASKER

What does '@' do?

newbieweb
Sorry I'm so late in replying to your question.  The @ symbol allows for you to use regular slashes in a string.  For instance if you wanted to open C:\chicken.txt, on your computer without the @ symbol it would be:

string FileToOpen = "C:\\chicken.txt";

With the @ symbol:
string FileToOpen = String.Format(@"C:\chicken.txt";