在 XP Fat32 中创建符号链接或硬链接

发布于 2024-10-27 19:26:52 字数 619 浏览 5 评论 0原文

我正在寻找一种方法,使用符号链接或硬链接来欺骗程序,使其认为文件实际上位于网络共享上时位于特定目录中。我知道符号链接可以通过 Junction 在 Vista 及更高版本中使用,但这是一台 Windows XP Fat32 计算机(Junction 仅适用于 NTFS)。

该程序是 AbeBooks 的 HomeBase3。据他们的技术人员介绍,自从从 2.3 升级到 3 后,所有网络都已被禁用,唯一的方法就是找到某种方法将 homebase.sqlite 文件共享给两者。问题是他们声称无法更改配置,并且该程序只会在 Shared Docs\Homebase3\ 文件夹中查找。

我正在尝试帮助一家小型旧书店解决这个问题,但预算非常非常有限,感谢任何帮助。

如果你想在这里搞乱它,它是免费的: http://www.abebooks.com/homebase/software-inventory- management-system-catalog/

他们需要 3.0 版本来保持最新状态,但实际上需要两台计算机来进行库存输入和结账。

I am looking for a way to use a symlink or hardlink to trick a program into thinking a file is in a specific directory when it's actually on a network share. I know symlinks are available via Junction and in Vista and above, but this is a Windows XP Fat32 computer (Junction only works with NTFS).

The program in question is HomeBase3 from AbeBooks. According to their tech people, since the upgrade from 2.3 to 3, all networking has been disabled and the only way to do this would be to find some way to have the homebase.sqlite file be shared to both. The catch is that they claim there is no way to change the configuration and that the program will ONLY look in the Shared Docs\Homebase3\ folder.

I'm trying to help a small used-book store figure this out, and the budget is very, very limited and any help is appreciated.

It's free if you want to mess around with it here:
http://www.abebooks.com/homebase/software-inventory-management-system-catalog/

They need the 3.0 version to stay up to date but really need two computers for inventory input and checkout.

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

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

发布评论

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

评论(2

浮光之海 2024-11-03 19:26:52

根据 SQLite 数据库中有多少数据,如果您不需要对数据库进行并发写入访问,我建议您尝试使用 Dropbox ( http://www.dropbox.com/ )在计算机之间复制数据库文件(作为奖励,您可以在云中获得备份:)

在每台计算机上安装 Dropbox 并为商店注册一个免费帐户。

在 Dropbox 高级首选项中,您可以将 Dropbox 位置配置为 SharedDocs 文件夹。

另外,在“常规首选项”下启用“LAN 同步”,因为这将允许您的文件在网络上的计算机之间快速同步,无论互联网速度如何(甚至可能在没有互联网连接的情况下工作,但我不确定)。

如果两台计算机同时写入数据库,Dropbox 将无法再保持同步,而是会在其中一台计算机上创建“冲突副本”。您可以使用脚本监视这种情况并向用户发出警报。如果发生这种情况,我想一个简单的恢复过程可能是删除“库存”输入版本,因为可以轻松地重新输入该数据。

显然,如果存储确实需要从两台计算机对数据库进行并发写入访问,或者 SQLite 数据库太大,那么这不是一个好的选择。

Depending on how much data is in the SQLite database, if you don't need concurrent write access to the database I suggest you try using Dropbox ( http://www.dropbox.com/ ) to replicate the database file between computers (and as a bonus you get a backup in cloud :)

Install Dropbox on each computer and register a free account for the store.

In Dropbox Advanced Preferences you could configure the Dropbox location to be the SharedDocs folder.

Also under General Preferences enable "LAN sync" as this will allow your file to be synced fast between computers on the network regardless of internet speed (might even work without internet connectivity, but I'm not sure).

In the event that both computers write to the database at the same time, Dropbox will no longer be able to maintain sync, but will create a "conflicted copy" on one of the computers. You could have a script monitoring for this situation and alert the user. If that happens I imagine a simple recovery procedure could be to delete the "Inventory" input version as that data can be easily re-keyed.

Obviously this would not be a good option if the store does require concurrent write-access to the database from both computers, or if the SQLite database is too large.

轮廓§ 2024-11-03 19:26:52

另一种解决方案可能是告诉 WinXP 您的 SharedDocs 文件夹位于文件服务器上。

根据 WinXP 配置这些路径的方式,有几种不同的方法可以实现此目的。根据 HomeBase3 查找 SharedDocs 路径的方式(该路径在不同版本的 Windows 中具有不同的位置,因此开发人员不太可能对值进行硬编码),其中一种或两种方法可能会起作用。

  1. Windows 注册表编辑器。您可以运行 regedit.exe 并更改注册表项“My Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders”下存储的数据。设置“通用文档”的默认值为“%ALLUSERSPROFILE%\Documents”。您可以更改此值以指向共享网络驱动器上的文件夹。
  2. 我的电脑->属性->高级->环境变量->系统变量。只需添加一个新的系统变量 ALLUSERSPROFILE,其值包含共享网络驱动器上的文件夹路径。

Another solution might be to tell WinXP that your SharedDocs folder lives on your file server.

There a couple of different ways to do this, based on the way WinXP has these paths configured. Depending on how HomeBase3 looks up the SharedDocs path (that has different locations in different versions of Windows, so developers would be unlikely to hard-code the value) one or both of these methods might work.

  1. Windows Registry Editor. You can run regedit.exe and change the data stored under registry key "My Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders". The setting "Common Documents" has a default value of "%ALLUSERSPROFILE%\Documents". You can change this value to point to a folder on a shared network drive.
  2. My Computer->Properties->Advanced->Environment Variables->System variables. Simply add a new System variable ALLUSERSPROFILE with value containing the path to a folder on a shared network drive.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文