I've noticed that any time I open up the command prompt, I tend to have to navigate to my git directory. So I'm trying to set up a simple macro to take me there. I've made a folder called *C:\Macros* and modified my %PATH% variable to point there. And I've added a file called `gotoGit.bat`.

Inside that batch file, I'm simply doing this :

```
@ECHO off

:: Check if a path is provided...
SET pathvar=%1
IF "%pathvar%"=="" (SET pathvar=some\default\dir)

:: Navigate...
CD /D C:\git\%pathvar%

```

But when I call it from the command line, I'm not navigating anywhere.

```
C:\Users\You> gotoGit
C:\Users\You>

```

Toggling `ECHO on` I can see that it is executing and creating the correct path, but it's not navigating me to `C:\git\some\default\dir`. The `cd` is only modifying the working directory inside the script, not my command line directory.

I'd like for it to navigate me to the right place :

```
C:\Users\You> gotoGit
C:\git\some\default\dir>

```

Any help is greatly appreciated.