2009年7月8日 星期三

如何暫停Script,等待使用者按下任意鍵後才繼續

[VBScript]
strMessage = "Press the ENTER key to continue. "
Wscript.StdOut.Write strMessage

Do While Not WScript.StdIn.AtEndOfLine
Input = WScript.StdIn.Read(1)
Loop
WScript.Echo “The script is complete.”

[MS-DOS Batch file]
echo off
pause
echo The batch file is complete.

[REFERENCE]
How Can I Pause a Script and Then Resume It When a User Presses a Key on the Keyboard?

沒有留言:

SQL Server Planning, Pricing and License

  Server-CALs授權模式 1.需購買的量應該是所有終端用戶的電腦 例如:一台Data warehouse主機 與 一台Web報表主機,但公司有50人或電腦會連進Web報表主機開啟報表,則應該每一台用戶端電腦都需要有CALs授權,Data warehouse主機購買Ser...