none
How i can make my program check files RRS feed

All replies

  • How i can make my EXE project check files if it available or not?

    I assume you mean your program (exe) as created with Visual Studio using Visual Basic Net, correct?

    If so, to check if a file exists, a common way is with IO.File.Exists.


    "A problem well stated is a problem half solved.” - Charles F. Kettering

    Friday, June 30, 2017 2:25 PM
  • Hi Mohammed,

     Private Sub Button4_Click(sender As Object, e As EventArgs) Handles Button4.Click
            Dim filepath As String = "D:\test\1.xlsx"
            If My.Computer.FileSystem.FileExists(filepath) Then
                MsgBox("File found.")
            Else
                MsgBox("File not found.")
            End If
        End Sub

    Best Regards,

    Cherry


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Monday, July 3, 2017 8:53 AM
    Moderator