-1
Rad Studio Berlin 10 update 2にhttps://github.com/TurboPack/DOSCommandをインストールしましたが、使用方法がわかりません。私はそれを使って遊んでみましたが、例を探してGoogleで検索しましたが、何も見つかりません。(Delphi)DosCommand Componentの使い方は?
Rad Studio Berlin 10 update 2にhttps://github.com/TurboPack/DOSCommandをインストールしましたが、使用方法がわかりません。私はそれを使って遊んでみましたが、例を探してGoogleで検索しましたが、何も見つかりません。(Delphi)DosCommand Componentの使い方は?
残念ながら、あなたの質問には詳細な説明がありません。 コンポーネントが正常にインストールされている場合は、コンポーネントパレットに表示されます。あなたのフォームに配置し、オブジェクトインスペクタのプロパティを調整してExecute
に電話してください。
ご存知のとおり、ユニットヘッダーの「使用方法」と「例」のコメントは読んでいますか?
*******************************************************************
How to use it :
---------------
- just put the line of command in the property 'CommandLine'
- execute the process with the method 'Execute'
例
Example : Make a dir :
----------------------
- if you want to get the Result of a 'c:\dir /o:gen /l c:\windows\*.txt'
for example, you need to make a batch file
--the batch file : c:\mydir.bat
@echo off
dir /o:gen /l %1
rem eof
--in your code
DosCommand.CommandLine := 'c:\mydir.bat c:\windows\*.txt';
DosCommand.Execute;
ありがとうございます。遅れた返事をおかけして申し訳ありませんが、なんらかの理由で私はユニットヘッダーに "How it use"と "Example"コメントがありませんでした。 – Newb101