JETCOMP.EXE 参数

发布于 2024-09-16 00:21:01 字数 325 浏览 2 评论 0原文

我想使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

骄兵必败 2024-09-23 00:21:01

使用 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?

横笛休吹塞上声 2024-09-23 00:21:01

ssc 是正确的。 JetComp 有效!
如果数据库受密码保护,请使用此语法

jetcomp.exe -src:"G:\mydatabase.mdb" -wPASSWORD -dest:"G:\mycompacteddatabase.mdb"

ssc is correct. JetComp works!
If the database is password protected use this syntax

jetcomp.exe -src:"G:\mydatabase.mdb" -wPASSWORD -dest:"G:\mycompacteddatabase.mdb"
疯狂的代价 2024-09-23 00:21:01

虽然这个问题很老了,但我想发布一个答案,因为使用 JetComp 可能仍然对某人有用。

但是,JetComp.exe 似乎没有响应。

因为你使用了错误的语法。它是这样工作的:

jetcomp.exe -src:"G:\my database.mdb" -dest:"G:\my compacted database.mdb"

Although the question is quite old, I'd like to post an answer since using JetComp may still be of use for someone.

However, JetComp.exe does not seem to respond.

Because you used the wrong syntax. This is how it works:

jetcomp.exe -src:"G:\my database.mdb" -dest:"G:\my compacted database.mdb"
窝囊感情。 2024-09-23 00:21:01

JRO 不会修复数据库,因此 Jetcomp 是更好的选择。 JRO 无法打开损坏的数据库来执行修复。 Jetcomp 不会尝试打开数据库,因此它是数据库修复和文件压缩的​​最佳选择。

上面更正的命令:

jetcomp.exe -src:"G:\my database.mdb" -dst:"G:\my compacted database.mdb" 

JRO does not repair the database so Jetcomp 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:

jetcomp.exe -src:"G:\my database.mdb" -dst:"G:\my compacted database.mdb" 
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文