Created
February 15, 2018 00:06
-
-
Save andreburto/ca308c04a2150f3a76a87e441ac1d51f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Tomcat commands | |
Set-Variable -Name tomcat_path -Value "C:\path\to\apache-tomcat\bin\" -Scope global -Force | |
function start-tomcat { | |
$return_to = Get-Location | |
set-location -Path $tomcat_path | |
start-process .\startup.bat | |
Set-Location $return_to | |
} | |
function stop-tomcat { | |
$return_to = Get-Location | |
set-location -Path $tomcat_path | |
start-process .\shutdown.bat | |
Set-Location $return_to | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment