Old:Bugs 3.5-Apollo: Stop bat
|Uniform Server 3.5-Apollo known bugs or issues.|
Location: *\Uniform Server
Enhancement: Enclose batch commands between pushd %~dp0 and popd. This forces current working directory to the folder where a batch file is located in. On completion, it restores original calling working directory. This aAllows remote processes to stop servers.
rem Name: Stop Server File rem Created By: The Uniform Server Development Team rem Edited Last By: Olajide Olaolorun (empirex) rem Comment: Tara's new syetm of shutting down the server rem To Developers: Implemented a new system of server shutdown rem Proposed enhancement MPG 3-7-08 @echo off rem working directory current folder pushd %~dp0 rem Stop Apache indirectly stops MySQL udrive\home\admin\program\pskill.exe Apache.exe c rem ### Check for system error jump to Pause allows error message to be displayed. if errorlevel 2 goto :PAUSE goto :END :PAUSE echo . pause :END rem restore original working directory popd
Download this file Stop.bat.txt save as Stop.bat and copy to the folder Uniform Server.
Allow it to overwrite the existing file.
Additional information or background can be found on these forum pages.
Note: Technically for stopping a single process the above enhancement is not required however if you wish to stop additional processes the structure is in place.