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. FindFirstFile

FindFirstFile

Scheduled Pinned Locked Moved Visual Basic
question
2 Posts 2 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.
  • A Offline
    A Offline
    Anonymous
    wrote on last edited by
    #1

    hi all, when i used FindFirstFile() i got the file name as ".",for the first FindNextFile() call i got the name as ".." and for the third i got the correct one..how can i avoid the first two cases..

    B 1 Reply Last reply
    0
    • A Anonymous

      hi all, when i used FindFirstFile() i got the file name as ".",for the first FindNextFile() call i got the name as ".." and for the third i got the correct one..how can i avoid the first two cases..

      B Offline
      B Offline
      BhaskarG
      wrote on last edited by
      #2

      File_Name = Dir$(File_Path, vbDirectory) Do While File_Name <> "" If File_Name <> "." And File_Name <> ".." Then ..... Your statements go here ..... End If Loop This way i avoided the first two cases:) Thanks & Regards, Bhaskar.G

      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