SamratKar Posted September 6, 2011 Share Posted September 6, 2011 I wish to redirect my site if a particular page is a file exist in hard drive, using the following code, but it don't works, kindly help.<%Set fs=Server.CreateObject("Scripting.FileSystemObject")If fs.FileExists("C:\3dgarro.cur")=true Then Response.Write("exists.")Else Response.Write("not exist.")End Ifset fs=nothing%> Link to comment Share on other sites More sharing options...
justsomeguy Posted September 6, 2011 Share Posted September 6, 2011 That code works fine, but it's only detecting files on the server, not the client. ASP cannot detect files on the client because it runs on the server. Link to comment Share on other sites More sharing options...
SamratKar Posted September 6, 2011 Author Share Posted September 6, 2011 That code works fine, but it's only detecting files on the server, not the client. ASP cannot detect files on the client because it runs on the server.Kindly Help How can I detect files on client Link to comment Share on other sites More sharing options...
justsomeguy Posted September 6, 2011 Share Posted September 6, 2011 You can't check for arbitrary files on the client with any native techniques. You can use an ActiveX component for IE browsers, a Java applet would probably work for people who have Java installed. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.