vbs script in XP

G

Guest

I have a vbs script ( currentpagefilesettings.vbs ) I would like to run in
my XP laptop, but when I click on it it does not run. I also tried running
it in a command prompt and get
'currentpagefilesettings.vbs' is not recognized as an internal or external
command,
operable program or batch file.'

How do I run it in XP?

Jeff
 
P

Pegasus \(MVP\)

I have a vb script ( currentpagefilesettings.vbs ) I would like to run in
my XP laptop, but when I click on it it does not run. I also tried running
it in a command prompt and get
'currentpagefilesettings.vbs' is not recognized as an internal or external
command,
operable program or batch file.'

How do I run it in XP?

Jeff

Your problem is not related to Windows XP itself but to your own machine.
What happens when you do this:
- Click Start / Run / cmd{OK}
- Type this command:
wscript "c:\xxx\CurrentPageFileSettings.vbs"{Enter}

You must replace "xxx" with an actual folder name.
 
G

Guest

Thanks for helping.

When I run it that way I get a popup labeled "Windows Script Host" and the
text of the popup is "There is no script engine for file extension ".vbs"

(The same thing happened months ago when I tried to run one of Kelly's vbs
scripts).

Jeff
 
G

Guest

FWIW, I also searched for wscript and it does exist in several places on my
PC (system32, I386, etc.)

Jeff
 
P

Pegasus \(MVP\)

Google is your friend. If you had typed the following into a Google search
box:

"There is no script engine for file extension" vbs

then you would have received almost 900 hits, most of them recommending that
you run the command
regsvr32 %systemroot%\system32\vbscript.dll
 
G

Guest

Thank you again.

I ran the command and the answer was "DllRegisterServer in
C:\Windows\system32\vbscript.dll succeeded"

But - when I again ran the vbs script I still recieve the error message
""There is no script engine for file extension" vbs"

What am I doing wrong?

Thanks for the help.

Jeff
 
G

Guest

Thank you so much Kelly. You came through again!

DCOM Server was already started so that was not the problem.

I installed Windows Script 5.6 for Window XP, rebooted and that did the
trick!

I guess the existing wscript I had in the system was non-functional even
though I used
"regsvr32 %systemroot%\system32\vbscript.dll" successfully.

Thanks. All works fine now.

Jeff
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top