title: Is it possible to add a directory to DLL search path from a batch file or cmd script?
body: <p>MSDN says that the function <a href="http://msdn.microsoft.com/en-us/library/ms686203.aspx" rel="noreferrer">SetDllDirectory()</a> can be used to insert a directory into the <a href="http://msdn.microsoft.com/en-us/library/ms682586.aspx" rel="noreferrer">DLL Search Path</a>. Can this function be accessed from a batch file or cmd script, perhaps using via <a href="http://technet.microsoft.com/en-us/library/bb490887.aspx" rel="noreferrer">cscript</a>?</p>
  
  <p>The aim is to have our development version of a dll found before a pre-existing older one in %WINDIR% etc. without having to write a program just for that.</p>
  
  <p>Thanks in advance for your time and thoughts.</p>