disclaimer: never done this. - trigger the update in 4D, to send the message to all connected user (4D code) -- the above trigger starts a timer event/deamon which eventually shuts down the server - in the On Shut Down database method, use LEP to trigger a .bat file which copies the need files. -- the new files will need to be in a specific location, and so will the server replacement files - to trigger the .bat file there are a couple of options (links below) to setup a timed task (probably 2 .bat files one that creates the scheduled task to execute the 2nd to do the actual copy. - in the batch file that does the copy you *should* be able to launch the 4D app again too.
links for means to create a scheduled task (btw, google-foo to get this info) https://stackoverflow.com/questions/34495872/a-batch-file-that-run-a-program-on-a-specific-date-and-time-and-year https://superuser.com/questions/751761/schedule-a-bat-file-to-run-at-a-certain-time-within-a-certain-amount-of-minutes https://www.computerhope.com/issues/ch000785.htm good luck on shut down of the server On Thu, 24 May 2018 10:03:47 -0400, Bob Miller via 4D_Tech wrote: > Hi Everyone, > > I've been mining the 4D KB looking for a technique whereby I can > automatically update a 4D Server merged application. I'd like to do the > following: > >> Set a time when the merged server application will send a notice to > users that it will shut down >> Merged app then shuts down after 5 minutes >> New .4DC and .4DIndy files replace the existing files in the "Server > Database" folder >> Merged app is relaunched > > I know this was discussed before, but I can't find what I'm looking for. > In my scenario, the version of 4D would remain the same, only the > structure file would be changed. Right now I do this manually and every > time I do it, I know there's a better way. > > Can anyone point me in a direction, or wish to share some code to do this? > > Windows evironment. > > I imagine that somehow control is passed to an external executable > (Windows environment) that then copies the files after the merged app > terminates and then after the copy is complete, launches the merged app. > > Thoughts? Thank you! > > > Bob Miller > Chomerics, a division of Parker Hannifin Corporation > > > llllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll > "PLEASE NOTE: The preceding information may be confidential or > privileged. It only should be used or disseminated for the purpose of > conducting business with Parker. If you are not an intended > recipient, please notify the sender by replying to this message and > then delete the information from your system. Thank you for your > cooperation." > ********************************************************************** > 4D Internet Users Group (4D iNUG) > FAQ: http://lists.4d.com/faqnug.html > Archive: http://lists.4d.com/archives.html > Options: https://lists.4d.com/mailman/options/4d_tech > Unsub: mailto:[email protected] > ********************************************************************** --------------- Gas is for washing parts Alcohol is for drinkin' Nitromethane is for racing ********************************************************************** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:[email protected] **********************************************************************

