Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

check if a file on the user's PC exists

Status
Not open for further replies.

JeroenDortmans

Technical User
Aug 7, 2001
56
NL
How can I check if a file on the user's PC exists (so not on the server side, but the client side). I did try the following script:

<%
Set fs=CreateObject(&quot;Scripting.FileSystemObject&quot;)

If (fs.FileExists(&quot;c:\COCO_recognize_file.txt&quot;))=true Then
Response.Write(&quot;File c:\COCO_recognize_file.txt exists.&quot;)
Else
Response.Write(&quot;File c:\COCO_recognize_file.txt does not exist.&quot;)
End If

set fs=nothing
%>

But this doesn't work. Who can help me?
 
Due to security concerns, ASP doesn't allow access to the user's hard drive. If it was allowed, developers could essentially do what they wanted with the user's system... and that would be bad!

I believe there are ways to do this kind of thing using signed java applets, but I'm not exactly sure how or even where to start with it.

Hope this helps...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top