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);

_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to