How to reach a specific folder in my webuser’s computer.I want when a user click a link, my asp page have to go a spesific folder
is there any ocx or dll to reach webuser’s computer?
ocx came from Microsoft on MSN Space. when user accept activex, it reads our harddisk to add pitcures. There must have been an ocx. I have to find or I will die
no, u can not do it
You can make an ocx yourself, but it works on IE only.
with the using of FSO (File System Object), u can read a file
Code:
<% Set fs=Server.CreateObject("Scripting.FileSystemObject") Set f=fs.OpenTextFile("C:/Documents and Settings/username/blabla.txt", 1) Response.Write(f.ReadAll) f.Close Set f=Nothing Set fs=Nothing %> Browsers don't allow this due to user's security settings. Firefox and opera strictly forbid this, while IE uses security zone to enforce the permissions given to web page. Code:
<% Set fs=Server.CreateObject("Scripting.FileSystemObject") Set f=fs.OpenTextFile("C:/Documents and Settings/username/blabla.txt", 1) Response.Write(f.ReadAll) f.Close Set f=Nothing Set fs=Nothing %> thats for the server that hosts your site or for client side that's for server side.
Leave a Reply
You must be logged in to post a comment.