線上訂房服務-台灣趴趴狗聯合訂房中心
發文 回覆 瀏覽次數:2541
推到 Plurk!
推到 Facebook!

如何由 command line 執行 Windows Media Player

 
RaynorPao
版主


發表:139
回覆:3622
積分:7025
註冊:2002-08-12

發送簡訊給我
#1 引用回覆 回覆 發表時間:2002-11-20 10:16:27 IP:203.73.xxx.xxx 未訂閱
各位 Delphi K.Top 討論區的網友大家好 我記得我昨天晚上有回答一位網友的「問題」 問題的主題跟我這篇文章的主題意思一樣 如果我沒有記錯的話~~「發問人」應該是「chfamy」 後來我在 M$ 的網站中找到相關的連結 http://support.microsoft.com/default.aspx?scid=KB;en-us;q126869 http://support.microsoft.com/default.aspx?scid=kb;en-us;q241422 裡面說明了如何以 command line 的方式執行 Windows Media Player 我覺得這是一個很好的 knowledge 應該「跟大家分享」 因為只要參考以上的連結資料~~再配合 ShellExecute API 就可以直接從程式碼中執行 Windows Media Player 了 而且還可以控制「自動播放」、「自動關閉」、「全螢幕」...等功能 備註: 可是~~很奇怪~~我今天想要再來查詢這篇文章的情況時 卻發現這篇文章已經「不見了」(搜尋不到了) 我實在不明白這篇文章為什麼會不見了 有網友可以為大家說明嗎?? --
------
-- 若您已經得到滿意的答覆,請適時結案!! --
-- 欲知前世因,今生受者是;欲知來世果,今生做者是 --
-- 一切有為法,如夢幻泡影,如露亦如電,應作如是觀 --
jackkcg
站務副站長


發表:891
回覆:1050
積分:848
註冊:2002-03-23

發送簡訊給我
#2 引用回覆 回覆 發表時間:2002-11-20 12:13:04 IP:61.221.xxx.xxx 未訂閱
DocErr: Media Player Command-Line Switches The information in this article applies to: Microsoft Windows for Workgroups 3.1 Microsoft Windows for Workgroups 3.11 Microsoft Windows NT Server 3.5 Microsoft Windows NT Server 3.51 Microsoft Windows NT Workstation 3.5 Microsoft Windows NT Workstation 3.51 Microsoft Windows Software Development Kit (SDK) 3.1 This article was previously published under Q126869 Media Player (both the 16-bit MPLAYER.EXE and the 32-bit MPLAY32.EXE) supports the following command-line syntax: MPLAYER /play /close /embedding file All of the command-line switches and the file name are optional. Their meanings are as follows: /play Play file right away. /close Close after playing (only valid with /play). /embedding Run as an OLE server. file The file or device to open. This information was inadvertently omitted from the Windows documentation. In Windows 95 and Windows NT 3.5 and higher, the Media Player also supports the following switch: /open Open the file if specified; otherwise, show the File Open dialog. In addition, the following switches can be used to ensure that the specified file is of a particular type: /AVI The file must be a Video for Windows (.AVI) file. /MID The file must be a MIDI (.MID) file. /WAV The file must be a Wave Audio (.WAV) file. Last Reviewed: 8/8/2001 Keywords: kbdocerr kbmm KB126869 ******************************************************************** Command Line Options Available for Windows Media Player The information in this article applies to: Microsoft Windows Media Player 6.4 This article was previously published under Q241422 SUMMARYWhen starting the Windows Media Player from a command prompt, you can specify several startup parameters. MORE INFORMATIONThe Windows Media Player has several command line options: /open: Open the file, don't automatically start playing. /play: Start playing the file as soon the player is launched. /close: Close the player after playback (only works when used with /play). /fullscreen: Start the file in full-screen mode. /new: Use a new instance of the player. For example, to play a file and close the player when done: Mplayer2.exe /play /close C:\Asfroot\Sample.asf Last Reviewed: 8/29/2001 Keywords: kbDSupport kbinfo KB241422 以免又找不到 哈哈
------
**********************************************************
哈哈&兵燹
最會的2大絕招 這個不會與那個也不會 哈哈哈 粉好

Delphi K.Top的K.Top分兩個字解釋Top代表尖端的意思,希望本討論區能提供Delphi的尖端新知
K.表Knowlege 知識,就是本站的標語:Open our mind
領航天使
站長


發表:12216
回覆:4186
積分:4084
註冊:2001-07-25

發送簡訊給我
#3 引用回覆 回覆 發表時間:2002-11-20 12:43:31 IP:210.208.xxx.xxx 未訂閱
感謝您的告知! 我會查看看刪除文章功能的權限管理部分, 印象中好像發言12小時以內有權利可以修該文章,但是不是可以刪除,我要查看看了! 謝謝您! ~~~Delphi K.Top討論區站長~~~
------
~~~Delphi K.Top討論區站長~~~
jackkcg
站務副站長


發表:891
回覆:1050
積分:848
註冊:2002-03-23

發送簡訊給我
#4 引用回覆 回覆 發表時間:2002-11-20 14:31:14 IP:61.221.xxx.xxx 未訂閱
站長 它說的應該是這一篇 【問題】如何以程式呼叫 M$ Windows Media Player 以全螢幕顯示 http://delphi.ktop.com.tw/topic.php?TOPIC_ID=21901
------
**********************************************************
哈哈&兵燹
最會的2大絕招 這個不會與那個也不會 哈哈哈 粉好

Delphi K.Top的K.Top分兩個字解釋Top代表尖端的意思,希望本討論區能提供Delphi的尖端新知
K.表Knowlege 知識,就是本站的標語:Open our mind
系統時間:2024-05-08 23:28:29
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!