On Mon, Jun 3, 2013 at 9:39 PM, YAN HONG YE <yanhong...@mpsa.com> wrote:

> if i use :
> sqlite3 D:\yeyh\sqlite\mmaa.db " select
> datetime(CURRENT_TIMESTAMP,'localtime');" >mdate.html
> in dos command, it could be get the result file: mdate.html
>
> but when I use c++ to run the createprocess function, It could not create
> the mdate.html file, I don't know why?
>
>
> STARTUPINFO si;
> PROCESS_INFORMATION pi;
> si.dwFlags = STARTF_USESHOWWINDOW;
> si.wShowWindow = SW_HIDE;
> si.cb = sizeof(si);
> ZeroMemory(&si, sizeof(si));
> CreateProcess("sqlite3.exe", " D:\\yeyh\\sqlite\\mmaa.db  \" select
> datetime(CURRENT_TIMESTAMP,'localtime');\" >mdate.html
> ",NULL,NULL,FALSE,CREATE_NO_WINDOW,NULL,NULL,&si,&pi);
> WaitForSingleObject(pi.hProcess, INFINITE);



http://stackoverflow.com/questions/7018228/how-do-i-redirect-output-to-a-file-with-createprocess

--
   --
      --
         --Ô¿Ô--
        K e V i N
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to