强制 Delphi 使用 chdir 打开项目 项目目录

发布于 2024-09-15 23:12:36 字数 642 浏览 2 评论 0原文

我有Delphi 6 prof,Win7。 我们有很多项目。其中一些是最喜欢的、常用的/编辑过的。

以前我使用 GExperts 的最爱。为此,“打开对话框”中显示的文件。 但到了Win7之后这个问题就消失了。

Delphi 不强制使用文件夹作为初始文件夹的主要问题。 这是什么意思呢?

当我通过单击 dpr 启动 Delphi 或从指向 Delphi + 所需 dpr 的链接启动时,Delphi 仍保留在上一个中。目录。 好的,项目正在打开,但我位于 Delphi 中使用的最后一个目录中。 不管我关闭,然后再次打开Delphi。它保留在此文件夹中。

Delphi 可以分两次打开项目目录: - a.) 使用 opendialog 选择一个 dpr - b.) 使用“已关闭的项目”(但这只有 4 个项目,没有更多)

我尝试了很多东西。 我尝试使用之前的批处理文件。打开所需的目录,然后启动带有所需项目的 Delphi。 我尝试在链接中设置“起始文件夹”。我尝试找到目录...

但无论我做什么,Delphi 都不会使用项目的文件夹。

这个问题,因为我们有很多相同的文件夹,我很容易错过一些东西,混淆文件,因为我认为我在好的目录中。

您知道如何强制 Delphi 打开实际项目所在的文件夹吗?

感谢您的帮助: DD

I have Delphi 6 prof, with Win7.
We have many projects. Some of them are favourites, commonly used/edited.

Formerly I used GExperts' fav. files that is shown in "Open dialog" for this.
But this is vanished with Win7.

The main problem that Delphi don't forcable to use a folder as initial folder.
What's this meaning?

When I start a Delphi with clicking on a dpr, or start with a link that points to Delphi + the needed dpr, Delphi remains in the prev. dir.
Ok, the project is opening, but I'm in the last dir that used in Delphi.
No matter that I shut down, and open the Delphi again. It is remaining in this folder.

Delphi can opens the project dir in two times:
- a.) select a dpr with opendialog
- b.) use the "closed projects" (but this have only 4 items, no more)

I tried many things.
I tried to use batchfile that prev. opens the needed dir, and next start the Delphi with the needed project.
I tried to set "starting folder" in a link. I try to find the dirs...

But no matter what I did, Delphi not use the project's folder.

This problem, because we have many same folder, and I easily miss something, confuse files, because I think I'm in good directory.

Do you have some idea, how to force Delphi to open the folder where the actual project is in?

Thanks for your help:
dd

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

疯到世界奔溃 2024-09-22 23:12:36

我怀疑这是注册表设置。查看注册表并尝试编辑其中的相关值(我手边没有 D6,但我知道它在 D2010 中发生了更改,这就是我现在拥有的)。

I suspect it's a registry setting. Look at the registry and try editing the relevant values there (I don't have D6 handy, and I know it's changed in D2010 which is what I have right now).

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