Hi,
We have a lot of seperate CMD files which all use the same variables.
ie
SET LoginName=AUser
SET SourcePath=C:\
is repeated in a dozen batch files
Is it possible to put all of these variables into one file then 'include' this one file in all my other files?
I was thinking that there is either a command similar to #include in C++, or maybe I can pre-run the CMD file which sets up the variables - do the variables exist between executions of a CMD file?
The objective is to simplify my scripts, therefore I would rather not implement a solution which adds more complexity!!
Start Free Trial