The registry change is located at HKCU\VBSFile\Shell\Open\Co
The default is normally %SystemRoot%\System32\Wscr
but you can easily change it to cscript.exe
Main Topics
Browse All TopicsI have created many vbs scripts in the past that when double clicked, run within the command prompt window and I can see the output and progress.
I am now running the same scripts on a new server and instead of the command prompt window opening, I am getting the windows message window, with the typical OK button, which I have to press to proceed. This is very annoying.
What do I need to change to make these run within the command prompt window?
I read somewhere that CScript would do this, but as I said, this works as desired on other windows boxes, why not this one?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
And http://support.microsoft.c
Business Accounts
Answer for Membership
by: sirbountyPosted on 2008-10-22 at 09:13:28ID: 22778240
The default engine on the other boxes may be cscript - that's a registry setting...
You can either change the registry, or try this code to ensure it's run with cscript:
(place it just after your assignment of wShell)
Select allOpen in new window