Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using a script as a function

Status
Not open for further replies.

bigbuck

IS-IT--Management
May 24, 2003
3
US
Does anyone know of a way to use a script by calling it much like a function, in order to return a value?

Thanks for any help!
 
Have you tried the StdOut property of the WshScriptExec object ?

Hope This Help
PH.
 
Thanks! Let me work through it and test.
 
Hello Bullschmidt,

How do you do that. I am new to VBScript.

Thanks and have a great day!

 
I think you must play with the
Code:
.wsf
files.
Code:
<job id=&quot;IncludeExample&quot;>
   <script language=&quot;VBScript&quot; src=&quot;MyFunctions.vbs&quot;/>
   <script language=&quot;VBScript&quot;>
      ' Calling an included function
      s = MyFunction1(MyParm)
      WScript.Echo s
   </script>
</job>


Hope This Help
PH.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top