erich.wanker Posted January 31, 2018 Share Posted January 31, 2018 Hi, i am searching a way to update my uniGui- App and the needed files HAS SOMEONE A SOLUTION OR A PIECE OF CODE? procedure (thinkings since now) 1.) i want to stop the server (apache 2.4.3) every 24 hours (at 02:00 am) 2.) if apache service is down, first of all a textfile should be loaded from a fix URL every line of the textfile should have destionation and target: www.myudateServer.com/files/unigui.dll -> uniServerPath/unigui.dll www.myudateServer.com/files/report1.rtm -> uniServerPath/files/reports/report1.rtm www.myudateServer.com/files/report2.rtm -> uniServerPath/files/reports/report2.rtm ..amd so on 3.) the update programm should store the textfile in a mem and copy (line by line) every file 4.) at the end - apache service should start again Allso (if possible) i want to stop the "firbird SQL server 2.3 with this "update programm" ThanX for suggestions Quote Link to comment Share on other sites More sharing options...
delagoutte Posted February 1, 2018 Share Posted February 1, 2018 for stop and start apache : [apache_directory]\bin\httpd.exe -k stop [apache_directory]\bin\httpd.exe -k start For stop and start firebird : [Firebird_directory]\bin\instsvc stop [Firebird_directory]\bin\instsvc start 1 Quote Link to comment Share on other sites More sharing options...
Abaksoft Posted February 1, 2018 Share Posted February 1, 2018 Bravo Delagoutte +1 Quote Link to comment Share on other sites More sharing options...
delagoutte Posted February 1, 2018 Share Posted February 1, 2018 For copy file you could use this topic : https://stackoverflow.com/questions/38128220/batch-script-to-copy-files-listed-in-text-file-from-a-folder-and-its-subfolders 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.