JETCOMP.EXE 参数
我想使用 JetComp.exe 压缩访问 MDB 数据库文件。我想将文件名(和目标文件)传递给 Jetcomp.exe 。但是,JetComp.exe 似乎没有响应。我尝试了以下操作:
jetcomp.exe -src:{"G:\my database.mdb"} -dst:"G:\my compacted database.mdb"
我无法使用 Jetcomp.exe 的 GUI 版本,因为我想将上面的行包含在数据库升级程序中。
一切顺利, 塞布
I want to compact an access MDB database file using JetComp.exe . I want to pass the name of the file ( and the destination file) to Jetcomp.exe . However, JetComp.exe does not seem to respond. I tried the following:
jetcomp.exe -src:{"G:\my database.mdb"} -dst:"G:\my compacted database.mdb"
I can't use the GUI version of Jetcomp.exe as I want to include the line above in a database upgrader.
All the best,
Seb
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
使用 DBEngine.CompactDatabase 方法而不是 JetComp。少了一件要分发的东西。
我也走得更远一点。请参阅备份,您信任用户还是系统管理员?
Use the DBEngine.CompactDatabase method instead of JetComp. One less thing to distribute.
I also go a bit further. See Backup, do you trust the users or system administrators?
ssc 是正确的。 JetComp 有效!
如果数据库受密码保护,请使用此语法
ssc is correct. JetComp works!
If the database is password protected use this syntax
虽然这个问题很老了,但我想发布一个答案,因为使用 JetComp 可能仍然对某人有用。
因为你使用了错误的语法。它是这样工作的:
Although the question is quite old, I'd like to post an answer since using JetComp may still be of use for someone.
Because you used the wrong syntax. This is how it works:
JRO
不会修复数据库,因此Jetcomp
是更好的选择。 JRO 无法打开损坏的数据库来执行修复。Jetcomp
不会尝试打开数据库,因此它是数据库修复和文件压缩的最佳选择。上面更正的命令:
JRO
does not repair the database soJetcomp
is the better alternative. JRO is not able to open a corrupt database to perform a repair.Jetcomp
does not attempt to open the database so it is the best option for DB repair and file compression.Corrected command from above: