I have the following in build-site.bat:

set JEKYLL_ENV=production 
bundle exec jekyll build

I'd like to have the bat file residing in my documents area under a folder say scripts. I'd then like to be able to cd into a Github repo, and type build-site and have the bat run.

Is this possible?



Add your scripts directory the PATH of your environment. Afterwards stuff that's within your PATH will be available the way you want.

As for how to change the PATH have a look at:

There are plenty more resources available.

  • It worked, thanks so much! I will accept your answer when I can :D – Giacomo Feb 19 '19 at 12:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.