the only way i know is using two programs, i don't konw how to close the WDL by command.
In your main program check the content of the network file and if you decide for update use exerun to start the other program and end your main program, after the copy do the oposite.