Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Passing arguments out of a VBS

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,3388
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Passing arguments out of a VBS
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Passing arguments out of a VBS - 6/15/2005 4:27:22 AM   
  JahDW

 

Posts: 2
Score: 0
Joined: 6/15/2005
From:
Status: offline
Is it possible to write a vbscript that not only accepts arguments, but also returns arguments upon completion?

For instance, the script I've written accepts an IP address and then uses the IP address to determine dns suffix, location of computer, and a few other server names (all part of a global logon script). The script does everything correctly, but I can't figure out a way to have it pass the variables back out when it completes.
 
 
Post #: 1
 
 Re: Passing arguments out of a VBS - 6/15/2005 6:26:10 AM   
  drbelden

 

Posts: 109
Score: 0
Joined: 12/21/2004
From: USA
Status: offline
I believe you can use the quit method to return an error code value. You may be limited to numeric values though. That can be worked around if this is what you are looking for.


      

(in reply to JahDW)
 
 
Post #: 2
 
 Re: Passing arguments out of a VBS - 6/15/2005 8:31:30 AM   
  fosterr_2000

 

Posts: 115
Score: 0
Joined: 12/18/2004
From:
Status: offline
What kind of value would you like to return?

(in reply to JahDW)
 
 
Post #: 3
 
 Re: Passing arguments out of a VBS - 6/15/2005 8:48:14 AM   
  marcusrp

 

Posts: 145
Score: 0
Joined: 4/19/2005
From:
Status: offline
i'm assuming you are wanting to assign the dns info, computer location and server names to variables within the script and then pass them to external processes...you probably want to include your script, or at least the relevant portion

(in reply to JahDW)
 
 
Post #: 4
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Passing arguments out of a VBS Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts