WSH in VS.NET 2003?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Gerry Hickman (gerry666uk_at_yahoo.co.uk)
Date: 11/21/04


Date: Sun, 21 Nov 2004 14:20:25 +0000

Hi,

Microsoft have a development environment called Visual Studio .NET 2003.
It works fine with C# files, but not with WSF/HTA files.

If you create a new WSF file, the IDE complains that the 'job' element
is not supported by the active schema. It seems impossible to choose a
schema that correctly works with WSF files, even if you put XML at the
top, it doesn't see it as XML - probably because of the extension being WSF.

You run into similar problems trying to use the IDE for HTAs.

It's a shame it won't work properly because there are some potentially
nice facilities such as syntax coloring, script outlining, script only
view, expand/collapse function blocks, tabbify selection and so on. In
theory it should also be possible to set breakpoints and run the script
from within the IDE (but this doesn't seem to work).

All of these things work to a degree, but never 100% correctly. Maybe
there's a way to create a schema file specially for WSF and HTA, but
I've been unable to find out how to do this.

-- 
Gerry Hickman (London UK)


Relevant Pages

  • Re: WSH not returning exit code <> 0 when script aborts, why?
    ... involved for a *.wsf file... ... scrobj.dll which serves as the inner host. ... that creates the instances of the script engines. ... ambiguous error line problem in a multiple script element *.wsf that I ...
    (microsoft.public.scripting.wsh)
  • Re: Incude statement - is there such a thing?
    ... > I can't imagine any memory usage issues. ... Sounds like you are thinking of wsc more than wsf... ... > other script files (as the Docs often suggest to be ... The .wsf format allows you to specify relative file paths to the included ...
    (microsoft.public.scripting.vbscript)
  • Re: WSF src file forward references
    ... Say I have two JScript files A.js and B.js in a wsf job ... This is because the script run-time does not yet know about ...
    (microsoft.public.scripting.wsh)
  • Re: Type of Script?
    ... Can someone tell me what type of script this is? ... It's a *.wsf format script, just name it with a *.wsf extension. ... pass = "MyPassword" ' password to use with username above ... Sub RdpCall ...
    (microsoft.public.scripting.vbscript)
  • Re: Hwo can I get the job id from within a script?
    ... > files) - well except for the essential ability to include multiple script ... I don't know about argument processing, per se, but one other thing the .wsf ... >> bruce cartland wrote: ... many shortcomings of the WSF file format (IIRC including this ...
    (microsoft.public.scripting.wsh)