好湿?好紧?好多水好爽自慰,久久久噜久噜久久综合,成人做爰A片免费看黄冈,机机对机机30分钟无遮挡

主頁 > 知識庫 > Wscript 和 Cscript 運行腳本的區別詳解

Wscript 和 Cscript 運行腳本的區別詳解

熱門標簽:如何用機器人進行電銷 神行者美術館地圖標注 百度地圖標注點距離代碼 齊齊哈爾高德地圖標注店 哪里有便宜的地圖標注公司 佛山真人電銷機器人廠家 東營快遞外呼系統 除了地圖標注還有這種生意嗎 地圖標注政府哪個部門管

WSCRIPT與CScript區別

窗口中運行,WSCRIPT;命令行中運行,CScrip;
    cscript因為把輸出放進了控制臺 所以可以對它重定向 方便程序調用
    wscript直接用窗口輸出 適合調試程序和編寫小工具 在windows下不用cmd的話cscript的輸出會一閃而過 大多數情況下,列在下表中的選項適用于 WScript.exe 和 CScript.exe。例外情況會加以注釋。

參數                      說明
//B                       批處理模式;隱藏用戶提示和腳本錯誤在命令行中的顯示。默認模式是交互模式。
//D                       打開調試程序。
//E:engine                用指定的腳本引擎執行腳本。
//H:CScript或 //H:Wscript 將 CScript.exe 或 WScript.exe 注冊為運行腳本的默認應用程序。如果未指定,則將 WScript.exe 假設為默認應用程序。
//I                       默認。交互模式;允許顯示用戶提示和腳本錯誤。與批處理模式相反。
//Job:JobID>             從 .wsf 文件運行指定的 JobID。
//logo                    默認。顯示標題。與 nologo 相反。
//nologo                  防止在運行時顯示執行標題。默認設置是 logo。
//S                       保存該用戶的當前命令行選項。
//T:nn                    啟用超時:腳本可以運行的最大秒數。默認設置是無限制。//T 參數通過設置定時器來防止腳本執行過度。當執行時間超過指定值時,CScript 用 IActiveScript::InterruptThread 方法中斷腳本引擎,并終止過程。
//U                       用于 Windows NT 和 Windows 2000,強制命令行以 Unicode 格式輸出。CScript 無法決定以 Unicode 還是以 ANSI 輸出;默認設置為 ANSI。
//X                       在調試程序中啟動該程序。
//?    

微軟的解釋:

Script Hosts
The script host initiates and coordinates the running of your script; it reads your script file and interacts with components of the WSH environment and any COM objects required by the script. It is also the responsibility of the script host to determine which language engine to use when running the script. For example, if the script has a .vbs extension, the script host will load the VBScript language engine and begin working with that engine to execute the code.

The WSH environment includes two script hosts: the console-based CScript and the GUI-based WScript. The two script hosts provide nearly identical capabilities, and in most cases, it does not matter which of the script hosts you use to run your scripts.

The two exceptions lie in how you interact with a script; that is, how you get information into a script (input) and how the script displays information it has retrieved (output). In general, CScript receives input from the command prompt and displays output in a command window. WScript, by contrast, receives input through a graphical dialog box and displays output in a graphical message box.

Otherwise, the two script hosts are largely identical: If you have a script that does not require user interaction, you can run that script under either CScript or WScript. For example, the following script maps a network drive. Because it neither requires input nor displays output, it runs exactly the same under either script host:

Set objNetwork = Wscript.CreateObject("WScript.Network")objNetwork.MapNetworkDrive "g:", "\\atl-fs-01\Sales"
On the other hand, the following script which displays a series of messages runs much differently under CScript (where the messages are displayed as individual lines within a command window) and WScript (where the messages are displayed as a series of message boxes). If you are interested in seeing the difference for yourself, copy the script into Notepad, save it with a .vbs file extension, and then run it under both CScript and WScript. (For more information about running scripts under a script host, see "Running WSH Scripts" later in this chapter.)

復制代碼 代碼如下:

Wscript.Echo "Line 1."
Wscript.Echo "Line 2."
Wscript.Echo "Line 3."
Wscript.Echo "Line 4."

標簽:文山 鶴壁 湖州 西安 銅川 邢臺 四平

巨人網絡通訊聲明:本文標題《Wscript 和 Cscript 運行腳本的區別詳解》,本文關鍵詞  Wscript,和,Cscript,運行,腳本,;如發現本文內容存在版權問題,煩請提供相關信息告之我們,我們將及時溝通與處理。本站內容系統采集于網絡,涉及言論、版權與本站無關。
  • 相關文章
  • 下面列出與本文章《Wscript 和 Cscript 運行腳本的區別詳解》相關的同類信息!
  • 本頁收集關于Wscript 和 Cscript 運行腳本的區別詳解的相關信息資訊供網民參考!
  • 推薦文章
    主站蜘蛛池模板: 亚洲绝美精品一区二区_第01集| 韩国大尺度吸乳在厨房| 美女脱内衣网站| 欧美激情视频在线观看| 古代级a毛片可以免费看| 久久精品午夜一区二区福利| 自拍三区| 电影《欲妇艳谭》| 久久久久久精品毛片A级桃花 | 秋霞影院鲁丝片| 波多野结衣中文免费电影| 国产成人福利色视频| 女人与大黄拘做爰视频| 欧美色少妇高潮4444| 最色影院| 啊灬啊别停灬用力啊| 毛茸茸xxx娇小| 顶级欧美熟妇XXOOHD| 前田香织一区二区中文字幕| 亚洲jiZZjiZZ日本少妇| 成年人不懂如何恋爱在线观看| 久久亚洲这里只有精品18| zoofilia杂交videos日本人| 含羞草媒体| 成人精品一区二区不卡视频| 91丨PORNY丨国产入口| 日本rapper潮水| 男男之h啪肉np文| 伦流澡到高潮H小龙女尹志平视频 小龙女尹志平翻云覆雨原著小说 小龙女双乳被揉到潮喷H漫画 | 美国高清性做爰在线| 亚洲自偷自拍另类12P| aa级国产女人毛片好多水| 欧美一级aaaaA久久久| 国产?刺激?高潮?动漫| 小**毛片| 中文字幕欧美日韩| 国产激情无码免费AV在线观看| 国产伦精品一区二区免费| 免费看美女扒开腿让男人桶 | 啊灬快c我灬啊灬用力灬啊灬| 99年水嫩漂亮的大学美女学实|