Oh %~dp0 how I love you. This the perfect thing for when you need to access the Dependency Directory when running batch files in offline KScripts.