Jump to content

Check File exist in hard drive


SamratKar

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...