Go Back   CP Web Hosting - reseller hosting > Server Scripting > ASP
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-25-2007, 12:37 PM
Senior Member
 
Join Date: Mar 2007
Posts: 274
Default How to reach a specific folder

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?
Reply With Quote
  #2 (permalink)  
Old 06-25-2007, 12:39 PM
Senior Member
 
Join Date: Apr 2007
Posts: 347
Default

Quote:
Originally Posted by Steve View Post
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
Reply With Quote
  #3 (permalink)  
Old 06-25-2007, 12:41 PM
Senior Member
 
Join Date: Apr 2007
Posts: 311
Lightbulb

no, u can not do it
Reply With Quote
  #4 (permalink)  
Old 06-25-2007, 12:42 PM
Senior Member
 
Join Date: May 2007
Posts: 217
Default

You can make an ocx yourself, but it works on IE only.
Reply With Quote
  #5 (permalink)  
Old 06-25-2007, 12:45 PM
Senior Member
 
Join Date: May 2007
Posts: 345
Wink

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
%>
Reply With Quote
  #6 (permalink)  
Old 06-25-2007, 12:48 PM
Senior Member
 
Join Date: May 2007
Posts: 267
Default

Quote:
Originally Posted by Steve View Post
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?

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.
Reply With Quote
  #7 (permalink)  
Old 06-25-2007, 12:51 PM
Senior Member
 
Join Date: May 2007
Posts: 217
Default

Quote:
Originally Posted by mouse View Post
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
%>

thats for the server that hosts your site or for client side
Reply With Quote
  #8 (permalink)  
Old 06-25-2007, 12:52 PM
Senior Member
 
Join Date: May 2007
Posts: 345
Default

Quote:
Originally Posted by tertius View Post
thats for the server that hosts your site or for client side

that's for server side.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 03:03 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0