The windows file system allows file sharing under the control of the
machine's owner. Windows XP does not normally allow external access to the
files on that machine.
However, file sharing is enabled, and if you have permissions to the machine
(in other words, if you are listed in the Local Users or Local
Administrators group on that machine) then you can access files on the C
drive as:
"\\MachineName\C$\mydirectory\myfile" using normal methods for opening,
reading, and writing files (instead of SQL connect strings).
--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik
Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"Jason Huang" <Ja************@hotmail.com> wrote in message
news:uM**************@TK2MSFTNGP14.phx.gbl...
Hi,
In C# the SqlConnection=
"data
source=192.168.100.100;uid=MyID;password=MyPwd;dat abase=ETCserviceTest ";
and it is for SQL data connection.
Do we have some similiar method for accessing files in a paticular Windows
XP machine?
Thanks for help.
Jason