如何在delphi中调用dos命令?(20分)

  • 主题发起人 主题发起人 happy_hsr
  • 开始时间 开始时间
H

happy_hsr

Unregistered / Unconfirmed
GUEST, unregistred user!
想调用dos中的ping 命令,如何按下按扭后直接调用ping.
 
nicai_wgl.能否说的明白一点.
 
需要加什么控件吗?
 
万年问题。
 
没有人回答吗?[?][?][?]
 
Shellexecute
 
如何在delphi中调用dos的EXE文件或命令如type aa.txt>prn
winexec('c:/command.com /c type c:/aa.txt>prn',sw_normal)
调用photoshop等
ShellExecute(0,'open',StrPCopy(St,'http://'+Label3.Caption+'/products/teechart/delphi6'),nil,nil,SW_SHOW);
winexec('d:/photoshop7/photoshop.exe');

ShellExecute(handle,'open',StrPCopy(St,'http://'+Label3.Caption+ 'd:/photoshop7/photoshop.exe''),nil,nil,SW_SHOW);
都行
 
多人接受答案了。
 
后退
顶部