procedure TfrmSplash.CallSubSys(const SysID: Integer);
var
SysAddr: String;
begin
SysAddr := Application.ExeName;
SysAddr := Copy(SysAddr, 1, LastDelimiter('\', SysAddr)-1); case SysID of
1: { 调用计划管理系统 }
SysAddr := SysAddr + '\计划管理系统\ProJHGL.exe';
2: { 调用统计管理系统 }
SysAddr := SysAddr + '\统计管理系统\ProTJGL.exe';
3: { 调用成本控制系统 }
SysAddr := SysAddr + '\成本控制系统\ProCBKZ.exe';
end; if FileExists(SysAddr) then
WinExec(PChar(SysAddr), SW_NORMAL);
end;
var
SysAddr: String;
begin
SysAddr := Application.ExeName;
SysAddr := Copy(SysAddr, 1, LastDelimiter('\', SysAddr)-1); case SysID of
1: { 调用计划管理系统 }
SysAddr := SysAddr + '\计划管理系统\ProJHGL.exe';
2: { 调用统计管理系统 }
SysAddr := SysAddr + '\统计管理系统\ProTJGL.exe';
3: { 调用成本控制系统 }
SysAddr := SysAddr + '\成本控制系统\ProCBKZ.exe';
end; if FileExists(SysAddr) then
WinExec(PChar(SysAddr), SW_NORMAL);
end;
解决方案 »
- delphi中findfirst函数中文SearchRec.Name<>'.'和SearchRec.Name<>'..'是什么意思
- copy,CopyMemory的问题,复制出来的数组怎么和被复制的数组联动了?
- 如何使RichTextBox拖放word文件时获取文件完整路径,而不是显示一个区域?
- Mediaplayer怎样调用res资源?
- Delphi2010下用什么控件解码gzip?
- 关于特殊字符的问题
- 急急急!请问高手,我如何截获鼠标点击StringGrid的滚动条呢?(点击小三角块和拖动滚动块)
- 工具图标,急!
- 如何把系统当前时间,日期写入db数据库(送50分)
- 怎样在Treeview树枝接点处加小图标。
- win2000 professional 登录密码忘了怎么办?
- 套打发票,各位大虾有没有好的方法?
or
shellexecute(handle,'open',pchar(app name),pchar('app parameters'),
pchar('app start path'),sw_show); use this way can open all file except they are not register in windows!
eg: open a .exe shellexecute(hanlde,'open','a.exe',nil,nil,sw_show);
open a word document shellexecute(handle,'open','a.doc',nil,nil,sw_show);