SamratKar Posted September 6, 2011 Report 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 Report 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 Report 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 Report 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
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now