PDA

View Full Version : VBS files


Oz
May 13th 03, 01:08 PM
A question for Kelly or someone else, on Kellys site she
has a lot of vbs files for editing the registry, when I
try to run them they only open in Notepad, I have changed
the file association and run vb6 but they still only open
in notepad, any clues please.

David Candy
May 13th 03, 01:31 PM
They should open with wscript (GUI) or cscript (console). Type wscript =
/? on how to choose which. There are many tweaks that disable scripts to =
run by shanghaiing the association to notepad.

--=20
http://www.g2mil.com/Apr2003.htm
http://prorev.com/forbesrussia.htm
---------------------------------------------------------------
David Candy
http://www.mvps.org/serenitymacros
---------------------------------------------------------------
"Oz" > wrote in message =
...
> A question for Kelly or someone else, on Kellys site she=20
> has a lot of vbs files for editing the registry, when I=20
> try to run them they only open in Notepad, I have changed=20
> the file association and run vb6 but they still only open=20
> in notepad, any clues please.

Torgeir Bakken (MVP)
May 13th 03, 07:18 PM
Oz wrote:

> A question for Kelly or someone else, on Kellys site she
> has a lot of vbs files for editing the registry, when I
> try to run them they only open in Notepad, I have changed
> the file association and run vb6 but they still only open
> in notepad, any clues please.

Hi

You can run them from a command prompt or from Start/Run with

wscript.exe <path to vbs file>


This might fix your problem:

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


--
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

Google