如何使用 VBScript 屏蔽输入? [英] How to mask input with VBScript?

查看:32
本文介绍了如何使用 VBScript 屏蔽输入?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁知道如何在不使用 html 的情况下屏蔽 VBScript 中的 InputBox(工作安全问题)?我使用的是 Windows 10.非常感谢,非常感谢您的帮助.

does anyone have an idea how to mask the InputBox in VBScript without using html (work security issues)? I'm using windows 10. Thank you very much, any help is greatly appreciated.

推荐答案

在 VBScript 中,您基本上有 2 个用于屏蔽输入的选项:

In VBScript you essentially have 2 options for masked input:

  • 使用控制台和 ScriptPW.Password 对象:

Set oInput = CreateObject("ScriptPW.Password")
WScript.StdOut.Write "Enter password: "
pw = oInput.GetPassword

  • 使用自定义 HTML 对话框.

  • Using a custom HTML dialog.

    [来源]

    无法在内置的 InputBox 对话框中屏蔽输入.

    Masking input in the builtin InputBox dialog is not possible.

    这篇关于如何使用 VBScript 屏蔽输入?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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