curiouswebster
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
What syntax do I use in the filename to reference that remote machine.
newbieweb
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
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";
string FileToOpen = "C:\\chicken.txt";
With the @ symbol:
string FileToOpen = String.Format(@"C:\chicken
ASKER
newbieweb