vbscript 来自http://www.tek-tips.com/viewthread.cfm?qid=1610438

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了vbscript 来自http://www.tek-tips.com/viewthread.cfm?qid=1610438相关的知识,希望对你有一定的参考价值。

Function UserInput( myPrompt )
' This function prompts the user for some input. 
' When the script runs in CSCRIPT.EXE, StdIn is used, 
' otherwise the VBScript InputBox( ) function is used. 
' myPrompt is the the text used to prompt the user for input. 
' The function returns the input typed either on StdIn or in InputBox( ). 
' Written by Rob van der Woude 
' http://www.robvanderwoude.com
    ' Check if the script runs in CSCRIPT.EXE
    If UCase( Right( WScript.FullName, 12 ) ) = "\CSCRIPT.EXE" Then
        ' If so, use StdIn and StdOut
        WScript.StdOut.Write myPrompt & " " 
        UserInput = WScript.StdIn.ReadLine 
    Else 
        ' If not, use InputBox( ) 
        UserInput = InputBox( myPrompt ) 
    End If
End Function

以上是关于vbscript 来自http://www.tek-tips.com/viewthread.cfm?qid=1610438的主要内容,如果未能解决你的问题,请参考以下文章

vbscript 来自HFM元数据的实体NO层次结构

vbscript 来自http://www.functionx.com/ado/Lesson07.htm

vbscript 将来自不同工作簿的所有工作表合并到一个工作簿中

打开表单时隐藏访问窗口

vbscript 来自http://cloud.gestar.com/com/inc/tools/gexec.asp

ATL COM DLL 寄存器错误 0x80070716