vbscript 输出到控制台 [英] vbscript output to console

查看:104
本文介绍了vbscript 输出到控制台的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用 vbscript 将结果输出到控制台的命令或最快方法是什么?

What is the command or the quickest way to output results to console using vbscript?

推荐答案

你的意思是:

Wscript.Echo "Like this?"

如果您在 wscript.exe(.vbs 扩展名的默认处理程序,因此双击脚本会得到什么)下运行它,您将得到一个MessageBox"包含您的文本的对话框.如果您在 cscript.exe 下运行它,您将在控制台窗口中获得输出.

If you run that under wscript.exe (the default handler for the .vbs extension, so what you'll get if you double-click the script) you'll get a "MessageBox" dialog with your text in it. If you run that under cscript.exe you'll get output in your console window.

这篇关于vbscript 输出到控制台的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆