从网站打开资源管理器窗口 [英] Open Explorer window from Website

查看:179
本文介绍了从网站打开资源管理器窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我公司拥有的项目共享网络文件夹。此文件夹包含每个客户的子文件夹。每个子文件夹中包含的那些客户机完成的项目的所有信息。有道理,是啊?

My company has a shared network folder for projects. This folder contains a sub-folder for each of our clients. Each sub-folder contains all the information for the projects done for those clients. Makes sense, yea?

确定。

我得到了一个任务:当我们公司的MS CRM和查看客户帐户,允许用户点击一个按钮,将打开资源管理器该帐户的项目文件夹

I have been given a task: When in our company's MS CRM and viewing a client account, allow the user to click a button that will open explorer to the project folder for that account.

听起来很简单。

做了一些狩猎在线。这看起来不错:<一href=\"http://blogs.msdn.com/crm/archive/2007/04/18/integrating-windows-explorer-files-and-folders-into-crm-tabs.aspx\" rel=\"nofollow\">http://blogs.msdn.com/crm/archive/2007/04/18/integrating-windows-explorer-files-and-folders-into-crm-tabs.aspx

Did a bit of hunting online. This looks nice: http://blogs.msdn.com/crm/archive/2007/04/18/integrating-windows-explorer-files-and-folders-into-crm-tabs.aspx

这是时髦,但它会超越waaay其实我已经被赋予的任务范围。但是,我的公司不使用SharePoint(虽然我们有牌照,如果我们需要的话),我没有投资,直到它符合我们的CRM调整这个解决方案的时间。我只需要打开客户机上的资源管理器和文件夹指向它。我想有一个按钮,将打开资源管理器。应该很容易!我只是想成立一个CRM按钮,执行命令打开资源管理器/根,//服务器/项目/帐户,然后转移到更重要的事情。

It's funky, but it goes waaay beyond the scope of the task I've actually been given. However, my company doesn't use SharePoint (though we have licenses if we need it) and I don't have the time to invest tweaking this solution until it fits our CRM. I just need to open explorer on the client machine and point it at a folder. I want a button that will open explorer. Should be easy! I just want to set up a button in CRM, execute the command to open explorer /root, //server/projects/account, and then move on to more important things.

这是说,我不觉得像一个黑客,所以我并没有意识到,这是一个明显的安全漏洞,将被阻止大部分(如果不是全部)的时间。所以我给它一个去,但我一直有麻烦的JavaScript,我认为将是快速,简单,无痛的解决方案打开资源管理器(咄我!)

That said, I don't think like a hacker, so I didn't realize that this was an obvious security exploit that will be blocked most (if not all) of the time. So I gave it a go, but I've been having trouble opening explorer with JavaScript, which I thought would be the quick, easy and painless solution (duh me!)

有没有更简单的方法来做到这一点比我上面举的例子?

Is there an easier way to do this than the example I cited above?

推荐答案

其实,如果你直接的Internet Explorer,以本地协议,网络共享文件夹或FTP服务器时,它变成一个文件浏览器。这是自动的,你不需要做的比(通过SMB)或FTP服务器让你谈论到网络共享文件夹中的文件夹的任何其他。就在新窗口中打开该地址:

Actually if you direct Internet Explorer to a local protocol, network shared folder or ftp server it turns to a file browser. This is automatic and you dont need to do anything other than making the folder you talk about to a network shared folder (via SMB) or FTP server. Just open that address in a new window:

window.open("file://\\192.168.1.10\clients\112");

window.open("ftp://192.168.1.10/clients/112");

任何一个应该工作

either one should work

这篇关于从网站打开资源管理器窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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