WSH 2.0 include 
Author Message
 WSH 2.0 include

I have read that you may include a file in a script as follows:

<script language="JScript" src="foo.js"/>

When I try to execute this I get a Microsoft JScript compilation error
with a code of 800A03EA.

Any help would be appreciated.

Thank you,
Scott Lee



Fri, 10 May 2002 03:00:00 GMT  
 WSH 2.0 include

Sounds like you might have an error in foo.js...

--
Michael Harris


  I have read that you may include a file in a script as follows:

  <script language="JScript" src="foo.js"/>

  When I try to execute this I get a Microsoft JScript compilation error
  with a code of 800A03EA.

  Any help would be appreciated.

  Thank you,
  Scott Lee



Fri, 10 May 2002 03:00:00 GMT  
 WSH 2.0 include
Hi Scott,


Quote:
> I have read that you may include a file in a script as follows:

> <script language="JScript" src="foo.js"/>

> When I try to execute this I get a Microsoft JScript compilation error
> with a code of 800A03EA.

if you write:
<script language="JScript" src="foo.js"></script>
it should work.

Ullrich.



Sat, 11 May 2002 03:00:00 GMT  
 WSH 2.0 include

So should the first syntax - the .wsf file format is XML compliant, and the
closing "/" is the same as putting in the closing element.

Scott - are you doing this in a .wsf file, or in a standard script file?
This syntax is only for .wsf files. You can read about them at our website
(http://msdn.microsoft.com/scripting) under the WSH documentation. The
tutorial explains .wsf files fairly well.

Mike Whalen
Windows Script Dev


Hi Scott,



Quote:
> I have read that you may include a file in a script as follows:

> <script language="JScript" src="foo.js"/>

> When I try to execute this I get a Microsoft JScript compilation error
> with a code of 800A03EA.

if you write:
<script language="JScript" src="foo.js"></script>
it should work.

Ullrich.



Sat, 11 May 2002 03:00:00 GMT  
 WSH 2.0 include

Thank you.

The documentation that I read on Microsoft's WHS site, did not reach out and
smack me in the face to inform me that it was referring to .wsh files.  I have
corrected this and all it well.

Thank you again,
Scott Lee

Quote:

> So should the first syntax - the .wsf file format is XML compliant, and the
> closing "/" is the same as putting in the closing element.

> Scott - are you doing this in a .wsf file, or in a standard script file?
> This syntax is only for .wsf files. You can read about them at our website
> (http://msdn.microsoft.com/scripting) under the WSH documentation. The
> tutorial explains .wsf files fairly well.

> Mike Whalen
> Windows Script Dev



> Hi Scott,



> > I have read that you may include a file in a script as follows:

> > <script language="JScript" src="foo.js"/>

> > When I try to execute this I get a Microsoft JScript compilation error
> > with a code of 800A03EA.

> if you write:
> <script language="JScript" src="foo.js"></script>
> it should work.

> Ullrich.

  slee.vcf
< 1K Download


Sun, 12 May 2002 03:00:00 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. WSH 2.0 include external source files - HOW?

2. Include Functionality in WSH 2.0 Beta

3. WSH 2.0 and Include WScript.Quit() BUG?

4. Doing includes in WSH 2.0 beta?

5. "Broken" WSH 2.0

6. WSH 2.0 and the AddPrinterConnection ?

7. WSH 2.0?

8. Deploying WSH 2.0

9. SetDefaultPrinter Method and WSH 2.0

10. WSH 2.0 install

11. WSH 2.0 newsletter available

12. Question about WSH 2.0 TypeLibrary support?

 

 
Powered by phpBB® Forum Software