Hi stuartX,
Thanks for the updates. The last line in your most recent post is the line I am referencing. You cannot use
cnxnString as a variable if you don't define it. Defining it could look something like the following if you had a session named the same as the value of
strHostname:
Code:
cnxnString = "/S " & strHostname
I would suggest taking a look at chapter 3 of the scripting manual. It illustrates how you can use the
Connect method in detail. Chapter 3.6 specifically illustrates how you can use a variable with the
Connect method rather than using a string as is illustrated prior to chapter 3.6.
Does this information help you fix your script?
If you don't have a copy of the scripting manual already, you can download it from the following location:
http://www.vandyke.com/support/tips/...ing/index.html