Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. File not found

File not found

Scheduled Pinned Locked Moved Visual Basic
questiontestingbeta-testing
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Subjugate
    wrote on last edited by
    #1

    I have a question here.. if i wan my application to continue even if it cant found the file tt i wan, wat can i do?? something like tt.. if "C:\Testing" = False msgbox.show("found") endif i not sure if u understand my question i just dun wan my application to stop when the file is not found or not exist.

    A M 2 Replies Last reply
    0
    • S Subjugate

      I have a question here.. if i wan my application to continue even if it cant found the file tt i wan, wat can i do?? something like tt.. if "C:\Testing" = False msgbox.show("found") endif i not sure if u understand my question i just dun wan my application to stop when the file is not found or not exist.

      A Offline
      A Offline
      Anoop Brijmohun
      wrote on last edited by
      #2

      try using this If IO.File.Exists("C:\Testing") = True Then Msgbox("Found") End If thanks Anoop

      S J 2 Replies Last reply
      0
      • S Subjugate

        I have a question here.. if i wan my application to continue even if it cant found the file tt i wan, wat can i do?? something like tt.. if "C:\Testing" = False msgbox.show("found") endif i not sure if u understand my question i just dun wan my application to stop when the file is not found or not exist.

        M Offline
        M Offline
        Mycroft Holmes
        wrote on last edited by
        #3

        Also learn to use the english language, text speak in the forum is discouraged. You have a kyboard, use it!

        Never underestimate the power of human stupidity RAH

        1 Reply Last reply
        0
        • A Anoop Brijmohun

          try using this If IO.File.Exists("C:\Testing") = True Then Msgbox("Found") End If thanks Anoop

          S Offline
          S Offline
          Subjugate
          wrote on last edited by
          #4

          Thanks for the ans.

          1 Reply Last reply
          0
          • A Anoop Brijmohun

            try using this If IO.File.Exists("C:\Testing") = True Then Msgbox("Found") End If thanks Anoop

            J Offline
            J Offline
            Jon_Boy
            wrote on last edited by
            #5

            could also use "if my.Computer.FileSystem.FileExists(strFilePath) then". I have found the IO.File method to perform better if checking a large amount of files though.

            Any suggestions, ideas, or 'constructive criticism' are always welcome. "There's no such thing as a stupid question, only stupid people." - Mr. Garrison

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups