Created
August 30, 2018 18:49
-
-
Save biswajit-saha/9d44cfc5769f2dc236683651bf3a5adb to your computer and use it in GitHub Desktop.
Ghost start , restart, stop batch script for lazy persons. I assume you have your ghost folder in C: driver. In case not. Change the second line C:\ghost with your ghost folder path.
This file contains 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
@ECHO off | |
CD /D C:\ghost | |
CMD /C "ghost start" | |
start /wait http://localhost:2368/ | |
ECHO. | |
ECHO Do you want to restart or stop Ghost? | |
:choice | |
ECHO. | |
set /P c=[ enter R=restart / S=Stop ]? | |
if /I "%c%" EQU "R" goto :restart | |
if /I "%c%" EQU "S" goto :stop | |
goto :choice | |
:restart | |
CMD /C "ghost restart" | |
goto :choice | |
:stop | |
CMD /C "ghost stop" | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment