1

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?

Thanks!

Giacomo
  • 25
  • 6

1 Answers1

0

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.

Seth
  • 9,000
  • 1
  • 19
  • 34