打开文件夹,其路径存储在另一台PC的数据库中 [英] open folder whose path stored in database in another pc

查看:84
本文介绍了打开文件夹,其路径存储在另一台PC的数据库中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好
我正在制作程序以将文件夹的路径存储在数据库中,并且用户可以打开文件夹对话框并显示存储在此文件夹中的文件吗?
像这样存储在数据库中的路径:
E:\ finalhousingproject \ housingproject \ projects
该程序在我的电脑上可以很好地工作,但是当将程序安装到另一台电脑上时,打开文件夹的过程不起作用 请任何人帮我
感谢

hi all
i am making program to store path of folder in database and can user open folder dialog and show the files stored in this folder
the path stored in database like this:
E:\finalhousingproject\housingproject\projects
the program work very well in my pc but when setup program to another pc the process of open folder do not work
please can any one help me
thanks

推荐答案



从逻辑上讲这不是可行的方案.如果有许多用户将其文件夹路径存储在数据库中,那么如何跟踪特定用户的文件夹路径?如OriginalGriff所说,如果您拥有Network共享文件夹,则在用户具有足够权限的情况下应该可以正常工作.

因此,对于用户X,在数据库中为用户X存储本地文件夹将不起作用.我建议您将文件存储在数据库或网络共享文件夹中.

希望这对您有帮助.
Hi,

This is logically not working scenario. If number of users are storing their folder path in the database, how you are tracking the folder path for particular user? As OriginalGriff said, if you have Network shared folder in that case it should work fine if user have sufficient rights.

So, Storing local folder in the dabase for user X will not work for user Y. I suggest you to store files on Database or on Network shared folder.

Hope this helps you,


仅当两台PC的相同驱动器分配给相同的驱动器盘符时,它才有效.

"E:\ finalhousingproject \ housingproject \ projects"看起来应该是网络驱动器或USB插件.除非两台PC始终都可用"E:"驱动器,并且指向相同的数据,您将需要更改文件夹地址(最好在存储之前),以便将其定位到所有计算机上的正确位置.

抱歉,这听起来有点含糊,但是在不知道您实际的站点设置的情况下,它确实必须是真的.
It will only work if both PC''s have the same drive assignments to the same drive letter.

"E:\finalhousingproject\housingproject\projects" looks like it should be a networked drive, or a USB plug in. Unless the "E:" drive is available at all times from both PC''s and pointing at the same data, you will need to change the folder address (preferably before you store it) so that you can aim it at the right location on all machines.

Sorry if this sound a bit vague, but without knowing your actual site setup, it has to be, really.


这篇关于打开文件夹,其路径存储在另一台PC的数据库中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆