View Single Post
  #8  
Old 10-25-2012, 07:40 AM
rtb rtb is offline
VanDyke Technical Support
 
Join Date: Aug 2008
Posts: 4,305
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
__________________
--Todd

VanDyke Software
Technical Support
support@vandyke.com
505-332-5730
Reply With Quote