including files in VBS 
Author Message
 including files in VBS


Can anyone help me ?

I'm trying to include files in Script, I.E. the equivalent of "#include " in
C programming.

Would appreciate any help.



Fri, 28 Dec 2001 03:00:00 GMT  
 including files in VBS
Hi Silk,

If you have WSH 2.0 (beta) can use .WS files with:

    <Script language="VBScript" Src="otherfile.vbs"/>

If you have WSH 1.0 can use this script:

    Include "otherfile.vbs"

    Sub Include( cNameScript )
      Set oFS = CreateObject("Scripting.Filesystemobject")
      Set oFile = oFS.OpenTextFile( cNameScript )
      ExecuteGlobal oFile.ReadAll()
    End Sub


Pablo Almunia
Madrid - Spain

Fri, 28 Dec 2001 03:00:00 GMT  
 [ 2 post ] 

 Relevant Pages 

1. INCLUDE file in .VBS file?

2. Include File in VBS

3. include files in vbs

4. include file with VBS ?

5. how to add a include file with .vbs script ?

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

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

8. How to include vbs files

9. ASP 2 VBS, include file problme

10. Include .vbs file from another

11. How to include other VBS files

12. How I include vbs files ?


Powered by phpBB® Forum Software