Dim StdIn, StdOut
Set StdIn = WScript.StdIn
Set StdOut = WScript.StdOut

Do While Not StdIn.AtEndOfStream
     str = StdIn.ReadLine                         '读取cmd屏幕写入的字符串
         If str="exit" Then WScript.Quit
     StdOut.WriteLine "Line " & (StdIn.Line - 1) & ": " & str  '输出到cmd屏幕
Loop

相关文章:

  • 2021-08-09
  • 2021-12-23
  • 2021-06-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-03-06
  • 2022-12-23
  • 2022-12-23
  • 2021-12-10
  • 2021-04-02
相关资源
相似解决方案