@echo off CALL C:\hardcoded\path\to\env_setup.cmd CALL C:\hardcoded\path\to\your\commit_hook.cmd @rem or even perl -w c:\hardcoded\path\to\your\commit_hook.pl @rem assuming that env_setup.cmd sets up $ENV{PATH} to include Perl.exe