Alexus
Alexus

Reputation: 952

How to disable ECHO DIALOGS for Windows Script Host running a vbs file?

Ran into a problem today. I have a Windows Server 2003 with a bunch of .bat files that essentially start .vbs scripts. Every time an ECH is used in the script I get that annoying dialog box that contains content of an echo and requires to click ENTER all the time. How can I just disable the dialogs and keep ECHOs in the command prompt window only?

enter image description here

Upvotes: 0

Views: 7805

Answers (2)

Jeremy J Starcher
Jeremy J Starcher

Reputation: 23863

Force it to run under cscript instead of wscript

If you are running the script manually, just put cscript in front of it.

Otherwise, this might give you an approach:

http://www.robvanderwoude.com/vbstech_engine_force.php

Upvotes: 2

Robert Harvey
Robert Harvey

Reputation: 180858

Redirect the output somewhere else, i.e.

scriptname.vbs > textfile.txt

Upvotes: 0

Related Questions