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. C / C++ / MFC
  4. How do I find out if a new file exists in a directory

How do I find out if a new file exists in a directory

Scheduled Pinned Locked Moved C / C++ / MFC
questionhelp
3 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.
  • M Offline
    M Offline
    MikeRWinter
    wrote on last edited by
    #1

    Hi I have an application written in VB that checks whether a new wav file has been added to a folder by using the following: MyFile = Dir("C:\MyDirectory\*.wav") If MyFile contains a string, the file is then moved to another directory to manipulate. I wish to do the same in VC (6.0) - have you any suggestions? Thanks for any help that you can give! Mike

    L 1 Reply Last reply
    0
    • M MikeRWinter

      Hi I have an application written in VB that checks whether a new wav file has been added to a folder by using the following: MyFile = Dir("C:\MyDirectory\*.wav") If MyFile contains a string, the file is then moved to another directory to manipulate. I wish to do the same in VC (6.0) - have you any suggestions? Thanks for any help that you can give! Mike

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      mike.r.winter@btinternet.com wrote:

      I wish to do the same in VC (6.0) - have you any suggestions?

      Take a look at the FindFirstFile/FindNextFile[^] functions; they may be what you need.

      M 1 Reply Last reply
      0
      • L Lost User

        mike.r.winter@btinternet.com wrote:

        I wish to do the same in VC (6.0) - have you any suggestions?

        Take a look at the FindFirstFile/FindNextFile[^] functions; they may be what you need.

        M Offline
        M Offline
        MikeRWinter
        wrote on last edited by
        #3

        Excellent - thanks very much - using the example got exactly what I wanted! Thanks very much Mike

        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