Dosya Varlık Yokluk Kontrolü Dosya Varlık Yokluk Kontrolü
Dosyanın var olup olmadığını kontrol eden bir uygulama. IIS 6.0 da çalışması için 2000 sunucudan tools.dll alıp win 2003 sunucuda kayıt ediniz.
[HTML]<%
Set Tools = Server.CreateObject("MSWC.Tools")
resim = "images/deneme.gif"
If Tools.FileExists(resim) then
'resim varsa
Response.Redirect resim
Else
'resim yoksa
Response.Redirect "images/bos.gif"
End if
%>
[/HTML]
Konu Maozturk tarafından (06-02-2007 Saat 01:54:35 ) değiştirilmiştir..
|