1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

API to access dir structure in Windows

Discussion in 'C' started by anmolgrad, May 2, 2006.

  1. anmolgrad

    anmolgrad New Member

    Joined:
    May 2, 2006
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    i've to access the directory structure of the clients machine (on windows platform)..... to perform follow:
    1) Save a file in the browsed directory
    2)Search a file

    plz tel me an appropriate API
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,276
    Likes Received:
    364
    Trophy Points:
    83
    For saving a file all you need to be doing is Plain C method of creating a file will do

    for searching you need to be using the FindFirstFile API and it will return you WIN32_FIND_DATA through which you can get the type of object found (Folder File) and browse the folder.
     

Share This Page