title: How to package all my functions in a batch file as a seperate file?
body: <p>My question is related to <a href="https://stackoverflow.com/questions/10149194/something-like-a-function-method-in-batch-files">this</a> question. I have several bunch of actions that need to be executed from a batch file and I would like to model them as functions and call from a master sequence. From the above question, it is clear that I can do this with the call syntax</p>
  
  <pre><code>call:myDosFunc
  </code></pre>
  
  <p>My question is that can I place all these functions in a seperate batch file (functions.bat) and somehow 'include' that in the main batch file and call them? Another option would be to utilize the possibility to invoke functions.bat from main.bat with the call syntaxt, but I'm not sure if I can invoke that with a specific function instead of executing the whole batch file.</p>
  
  <p>In short, I'm looking for something similar to the C programming world where my functions reside in a DLL and the main program contains only the high-level logic and calls the functions from the DLL.</p>