Skip to content

Instantly share code, notes, and snippets.

@biswajit-saha
Created August 30, 2018 18:49
Show Gist options
  • Save biswajit-saha/9d44cfc5769f2dc236683651bf3a5adb to your computer and use it in GitHub Desktop.
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.
@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