通常来说,你可以直接直接用 delphi 来运行 dos 命令(winexe / shellexecute)。如果是那种模拟打开 dos 窗口(shell),并键入命令并执行的情况,可以考虑发送按键消息给 dos 窗口。