Na formu sam ubacio textbox i dugme i na disku sam napravio folder
koji se zove TEST.E,sad,u tom folderu napravio sam 5 New Text Document-a i jednog sam imenovao sa 'find'.I sad hocu da kad ukucam
u textbox-u find i kad kliknem na dugme da program proveri da li se
taj fajl nalazi u folderu TEST.
Pozdrav
Dopuna: 05 Jan 2006 1:02
Problem resen
Kod:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
If Dir$("c:\TEST\FILE.txt") <> "" Then
MsgBox("The file exists", MsgBoxStyle.Information)
Else
MsgBox("The file does not exist", MsgBoxStyle.Exclamation)
End If
End Sub
|