AccessTr.neT
If FileExists("G:\") = True Then - Baskı Önizleme

+- AccessTr.neT (https://accesstr.net)
+-- Forum: Microsoft Access (https://accesstr.net/forum-microsoft-access.html)
+--- Forum: Access Cevaplanmış Soruları (https://accesstr.net/forum-access-cevaplanmis-sorulari.html)
+--- Konu Başlığı: If FileExists("G:\") = True Then (/konu-if-fileexists-g-true-then.html)



If FileExists("G:\") = True Then - accessman - 13/04/2012

hayırlı cumalar

If FileExists("G:\") = True Then

ile flash belleğin takılı olup olmadığını kontrol edebiliyoruz
ağdaki bilgisayardan bir dosyayı çalıştıra taşıyıp bıraktığımızda adres yolu şöyle gözüküyor

\\Asm\c\adobelog.txt

ağdaki bilgisayarın açık olup olmadığını kontrol için

If FileExists("\\Asm\c\") = True Then

yazıyorum ama olmuyor
nasıl yazmalıyım
teşekkürler


Cvp: If FileExists("G:\") = True Then - tolgahat - 13/04/2012

https://accesstr.net/konu-internete-bagli-mi-mysql-connector-var-mi-site-acik-mi-ip-numaram-nedir.html

yukarıdaki konudaki siteye erişim varmı özelliğini kullanarak tespit edebilirsiniz. site adresi www.google.com olan kısmı ağdaki bilgisayarın ip'si ile değiştirirseniz olay çözülür sanırsam.


Cvp: If FileExists("G:\") = True Then - ozanakkaya - 13/04/2012

Fileexists yerine aşağıdaki kodu deneyiniz

Dosya = Dir("\\Asm\c\adobelog.txt")
If Dosya = "" Then
MsgBox (" Dosya Bulunmuyor")
Else
MsgBox (" Dosya Bulundu!")
End If



Cvp: If FileExists("G:\") = True Then - accessman - 13/04/2012

maales yine olmadı


Cvp: If FileExists("G:\") = True Then - ozanakkaya - 13/04/2012

tolgahat'ın mesajındaki uygulama bu işlem için daha kullanışlı.

benim verdiğim kodda;
"\\Asm\c\adobelog.txt"
bu dosya var ise ve ağdaki bilgisayar açık ise kod çalıştığında "Dosya Bulundu" uyarısı verir.
bu dosya olsa bile ağdaki pc kapalı olduğu için "Dosya Bulunamadı" uyarısı verir.


Cvp: If FileExists("G:\") = True Then - accessman - 16/04/2012

teşekkürler