locked
MoveFileEx with MOVEFILE_REPLACE_EXISTING flag RRS feed

  • Question

  • Hi,

    I am developing one application (.exe) , this exe is running as a winodws service. This service  reads the plane text file for configuration entries.

    But when I change any configuration entry in plain text file (configuration file) . The executable is not picking up the changes. It took the last changes in the file.

    I have used MoveFileEx( MyConfig1.txt,  MyConfig1.txt, MOVEFILE_REPLACE_EXISTING ) 

    Still executable is not picking up latest values from file. I need to restart the service every time. I dont want to restart the service for every change.

    Could you please help me ?

    Friday, February 8, 2013 12:16 PM

All replies

  • So what is the server process doing to read in the changes after the file has changed ?

    //Daniel

    Saturday, February 9, 2013 4:08 AM