files client

  • Thread starter Thread starter cedced
  • Start date Start date
C

cedced

Hello,
is it possible to access client files in VB.NET?
What?
I have doing that but it isn't good (VB.NET take file on pc server and not
on pc client):
(thanks)
Dim fichier As StreamReader

Dim name As String

fichier = File.OpenText("C:\liste.txt")

name = fichier.ReadLine()

Response.Write(name)

Do While Not name Is Nothing

name = fichier.ReadLine()

Response.Write(name)

Loop

fichier.Close()
 
It is possible to access the file system on the client from any web page,
regardless of what is running behind it on the server. However, it can't be
done from the server. There is no connection between the server and the
client. The client sends a message to the server requesting a resource
(usually a file, such as an ASPX page). The server receives the message
(Request), processes it, and sends a message (Response) back to the client,
usually in the form of an HTML document. How then, can the server access
ANYTHING on the client?

How it is possible for any web page in the client browser to access the file
system on the client is by means of a Java Applet or ActiveX control in the
browser (embedded in an HTML document).

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Complex things are made up of
lots of simple things.
 
Found via Google:

From: Microsoft® Scripting Library - FileSystemObject
.....
Because use of the FSO on the client side raises serious security issues
about providing potentially unwelcome access to a client's local file
system, this documentation assumes use of the FSO object model to create
scripts executed by Internet Web pages on the server side. Since the server
side is used, the Internet Explorer default security settings do not allow
client-side use of the FileSystemObject object. Overriding those defaults
could subject a local computer to unwelcome access to the file system, which
could result in total destruction of the file system's integrity, causing
loss of data, or worse
....
Use of the FSO is possible client-side in IE, provided the user has set
"enable objects not marked as safe for scripting" (or words to that
effect) to "allow" or "prompt".


James
 
Back
Top