Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
DirChange(DirScript()) Call("script","")and it will find the script in the same dir as the source code, regardless of where you are running the script from. There is no way to do this with #include.
I can think of two:
Ummm there is also that you can use %substitution% variables in Calls but not in #includes.
A corollary says you can do
#include %somefilenamevar%in the WinBatch Studio debugged, not not in real Winbatch code. But you should not anyway.
In general, just because something works, does not make it recommended or a desirable programming technique. Indeed, there are horrible programming techniques that can be done that, well, work fine. Thankfully most people, when they find one, are sensible enough not to exploit it.
Article ID: W16966
File Created: 2007:07:03:14:27:22
Last Updated: 2007:07:03:14:27:22