Re: Scripting within windows XP failed

From: Torgeir Bakken (MVP) (Torgeir.Bakken-spam_at_hydro.com)
Date: 05/12/03


Date: Mon, 12 May 2003 00:10:44 +0200


Keith wrote:

> I tried to run a vbs script file (printer.vbs) to add a
> printer. It works perfectly in windows 2000, but running
> it windows XP gives the error there is no script engine
> for file extension ".vbs"
>
> If I say "open with" and associate it with either windows
> scripting host or cscript it will still not work.

Hi

A side note first: microsoft.public.scripting.wsh is a more relevant group for
this type of question (WSH is Windows Script Host, covers vbscript and jscript)

URL to the group for those who uses the not so good Web interface to access the

newsgroups:
http://communities.microsoft.com/Newsgroups/default.asp?ICP=MSCOM&sLCID=US&newsgroup=microsoft.public.scripting.wsh

Back to your problem:

Try this to refresh the registry values for WSH on Windows XP:

Locate the file %windir%\inf\wsh.inf (inf is a hidden folder), right click,
select "Install".

If that doesn't help, download and install WSH from here:
http://www.microsoft.com/downloads/details.aspx?FamilyId=C717D943-7E4B-4622-86EB-95A22B832CAA&displaylang=en

--
torgeir
Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of the 1328 page
Scripting Guide: http://www.microsoft.com/technet/scriptcenter


Relevant Pages

  • Re: What happened to macmillan website?
    ... script, or ASP on Windows servers, etc. ... The WSH is the "engine" that parses and runs VBScript ... There are no VBScript objects per se, ... and Unix people had shell scripting for server management. ...
    (microsoft.public.scripting.vbscript)
  • Re: SunJavaScript/Flash/IE6 Not Working right! Help?
    ... I don't have yahoo toolbar ... ... , Windows Messenger. ... You could try refreshing Windows Scripting. ... The Safe Mode test should tell you whether the problem lies with IE or ...
    (microsoft.public.windows.inetexplorer.ie6.setup)
  • Re: SP2 ... just a thought to ponder ..Paul Thurrotts site ......
    ... Changes in IE scripting capabilities ... prevents script-initiated changes to IE windows. ... is making changes in SP2 that affect Outlook Express and Windows Messenger, ... You can click in that area of the heading to display the images ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress.stationery)
  • Re: restrict software installation
    ... Preventing users from executing stuff on their home directory and in ... Is there some similar principle in Windows? ... emphasis on 'minimize network transfers'. ... Perhaps you can control this via some scripting stuff? ...
    (Focus-Microsoft)
  • Re: Do I Need a Firewall?
    ... Are you a dialup customer? ... Uninstall Windows Scripting Host, the operating system used to run ... Visual Basic Scripting files emailed to you. ... Download Webwasher from www.webwasher.com for free. ...
    (comp.security.firewalls)