【发布时间】:2017-01-14 16:20:25
【问题描述】:
我已经在 Rad Studio Berlin 10 更新 2 上安装了 https://github.com/TurboPack/DOSCommand,但我不知道如何使用它。我已经尝试过使用它,并且我已经通过谷歌搜索寻找示例,但我找不到任何示例。
【问题讨论】:
我已经在 Rad Studio Berlin 10 更新 2 上安装了 https://github.com/TurboPack/DOSCommand,但我不知道如何使用它。我已经尝试过使用它,并且我已经通过谷歌搜索寻找示例,但我找不到任何示例。
【问题讨论】:
很遗憾,您的问题没有详细说明。
如果您成功安装了组件,它应该会出现在组件面板中。请将它放在您的表单上,在对象检查器中调整属性并调用Execute。
顺便说一句,您是否阅读了单元标题中的“如何使用它”和“示例”cmets?
*******************************************************************
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;
【讨论】: