在 c++ 中通过 shellexecute 运行 gbak.exe
我想从我的 MFC 应用程序运行 gbak.exe
文件来备份 firebird DB, 我使用这个命令,但它不起作用:
shellexecute(hwnd,"open","gbak.exe"," -user HAMED -password 1234 DB2.FDB b.fbk","",SW_SHOW);
我的问题是关于 gbak 和 firebird。
大家可以帮助我吗? 谢谢
I want to run gbak.exe
file from my MFC application to backup firebird DB,
i use this order but it didn't work:
shellexecute(hwnd,"open","gbak.exe"," -user HAMED -password 1234 DB2.FDB b.fbk","",SW_SHOW);
my problem is about gbak and firebird.
can every on help me?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
尝试使用 CreateProcess 代替,如下所示:
Try to use CreateProcess instead, something like this:
gbak.exe
所在目录是否在您的系统路径中?如果没有,请将其放入系统%PATH%
变量中,或者在调用shellexecute
或createprocess
时指定完全限定的路径名。Is the directory where
gbak.exe
is located in in your system path? If not, put it into your systems%PATH%
variable or specifiy a fully qualified path name when callingshellexecute
orcreateprocess
.更改“gbk.exe”,使其成为完整路径。例如:
此外,您将
gbak.exe
拼写为gbk.exe
change "gbk.exe" so that it is a full path. Something like:
Also, you misspelled
gbak.exe
asgbk.exe
程序应断开与数据库的连接,然后放弃。
Program should disconnect from Data Base and then give back up.