当前位置:首页
开发技术指南» 文章正文
    引言:

    摘要: 为什么getsystemtime得到的系统时间的小时数中比当前小时数小8,就象下表一样 当前时间(小时) 得到时间(小时) 0 16 1 17 2 18 3 19 4 20 5 21 6 22 7 23 8 24 9 25 10 26 11 3 12 4 13 5 14 6 15 7 16 ......
 ·817ntee的安装问题()    »显示摘要«
    摘要: 怎么我可以运行setup.exe, 但是闪一下就没有了! 我记得是jre或者是哪里的环境没有配置好, 但怎么解决忘了! 请高手指点! ......


在delphi中用ShellExecute调用oracle的imp/exp/sql loader这些命令的语句应该怎样写

敬请给出代码!

NO.1   作者: laishoulin

不行吧!shellexecute执行的是任何文件执行的外挂程序!而不是执行某个环境下的命令!

NO.2   作者: findcsdn

//这是一个同步执行命令行的函数;  
   
  function   TForm1.ExecuteAndWait(const   CommandLine   :   string)   :   cardinal;  
  var  
    tSI   :   TStartupInfo;  
    tPI   :   TProcessInformation;  
    dwI   :   DWORD;  
    VarU   :   UINT;  
  begin  
    Result   :=   0;  
    FillChar(tSI,   sizeof(TStartupInfo),   0);  
    tSI.cb   :=   sizeof(TStartupInfo);  
   
    if   (CreateProcess(nil,   pchar(CommandLine),   nil,   nil,   False,   0,   nil,   nil,   tSI,   tPI))   then   begin  
        dwI   :=   WaitForSingleObject(tPI.hProcess,   INFINITE);  
   
        if   (dwI   =   WAIT_OBJECT_0)   then  
            if   (GetExitCodeProcess(tPI.hProcess,   dwI))   then   Result   :=   dwI;  
   
        CloseHandle(tPI.hProcess);  
        CloseHandle(tPI.hThread);  
    end;  
  end;  
   
 

NO.3   作者: oracle_lover

uses   windows;  
   
  winexec(路径\exp.exe   参数....,swShowNormal);


    摘要: 小弟我装redhat linux7.3时,一不小心把登陆用户和密码都给忘了,不知在系统盘中能否找到,或是用别的什么方法(除了重装),谢谢! ......
» 本期热门文章:
· 热门栏目:
» 相关精选文章
» 其它相关:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE