title: Using a .bat to change directories and run Jupyter
body: <p>I'm new to coding but I simply want to change directory and run jupyter. The problem is cmd instantly closes once it reaches the jupyter notebook command.  Tried cmd /k too but it doesn't have an effect. I must being doing this wrong.</p>
  
  <pre><code>F:
  cd directoryname
  activate environmentname
  jupyter notebook
  pause
  </code></pre>
  
  <p><strong>Solution:</strong>
  The commands were closing the prompt for some reason when executed in a .bat (they don't when typed). The fix was to type call before the commands.</p>
  
  <pre><code>F:
  cd directoryname
  call activate environmentname
  call jupyter notebook
  pause
  </code></pre>