Include .vbs file from another 
Author Message
 Include .vbs file from another

Is there a way (not in the internet .asp environment) to include/reference
constants, functions, etc. in one .vbs file from another?

Thanks in advance ...



Wed, 23 Jun 2004 02:26:13 GMT  
 Include .vbs file from another
[Please do not mail me a copy of your followup]



Quote:
>Is there a way (not in the internet .asp environment) to include/reference
>constants, functions, etc. in one .vbs file from another?

I don't know of a way to do it purely in VBScript, but when I'm
hosting vbscript in a web page, I include common constants like this
through a <SCRIPT SRC="..."></SCRIPT> block.
--
Ask me about my upcoming book on Direct3D from Addison-Wesley!
  Direct3D Book http://www.xmission.com/~legalize/book/
    Don't Support Spammers!  Boycott Fractal Painter 7!
     http://www.xmission.com/~legalize/spammers.html


Wed, 23 Jun 2004 02:27:59 GMT  
 Include .vbs file from another
Use the .wsf format for your script.

<job>
<script language="VBScript" src="included.vbs"></script>
<script language="VBScript">
' Your script
</script>
</job>

--
Truth, like gold, is to be obtained not by its growth, but by washing away
from it all that is not gold. -Leo Tolstoy

=-=-=
Steve
-=-=-


Quote:
> Is there a way (not in the internet .asp environment) to include/reference
> constants, functions, etc. in one .vbs file from another?

> Thanks in advance ...



Wed, 23 Jun 2004 04:14:13 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. How to include vbs files

2. How I include vbs files ?

3. Including vbs files?

4. include vbs file

5. How to include vbs files

6. Include another VBS script file in a main VBS script

7. include files and/or parameters betw vbs-files

8. INCLUDE file in .VBS file?

9. ASP 2 VBS, include file problme

10. vbs include files

11. Include File in VBS

12. How to include other VBS files

 

 
Powered by phpBB® Forum Software