Run a Windows Batch File from the Current Directory

Here’s a little bit of Windows batch file magic that I never remember off the top of my head so I’ll log it here. When you want your batch file commands to be executed from the current directory, putting the following at the start of your batch file should do the trick: cd /d %~dp0