#1
  1. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2013
    Location
    India
    Posts
    65
    Rep Power
    19

    Question Question need help !


    I am developing program for Windows platform. When user transfer some file to specific directory of my server my program should come in to action. In other words I want to develop one program which is in sleep mode. When file is pasted into specific directory from that event the program should be awake and begging to action. When the job is done it will again put it self in sleep mode.Can any one suggest a way to doing it ?
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2013
    Location
    Usually Japan when not on contract
    Posts
    240
    Rep Power
    11
    This is more an operating system question than a C question. Different operating systems provide different ways of "watching" a directory or "tailing" a file.
  4. #3
  5. No Profile Picture
    I haz teh codez!
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Dec 2003
    Posts
    2,539
    Rep Power
    2337
    Windows Service and ReadDirectoryChanges
    I ♥ ManiacDan & requinix

    This is a sig, and not necessarily a comment on the OP:
    Please don't be a help vampire!

IMN logo majestic logo threadwatch logo seochat tools logo