分享节目 [英] sharing a program

查看:112
本文介绍了分享节目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在服务器上安装exe程序并允许人们在任何计算机上运行程序,但无法将其保存在计算机上。如果是这样的话怎么办?

Is it possible to have a exe program on a server and allow people to axcess and run the program on any computer but not have the ability to save it on their computer. If so how would this be done?

推荐答案

Hi dkm0038

Hi  dkm0038

感谢此处的帖子

是的,您可以从共享网络运行应用程序,但运行不是一个好习惯网络申请表。为了从网络共享运行exe,您必须显式授予该应用程序的权限,因为.Net应用程序通常遵守更严格的安全规则。为此,您必须输入 Caspol 命令(一次)您的计算机,通过命令提示符窗口 (开始 - >所有程序 - >附件 - >命令提示符)例如,如果您想信任共享中的所有内容 \\ShawnFa-Srv\Tools 命令: < span style ="font-family:'Verdana','sans-serif';颜色:#1f497d; font-size:10pt"lang = EN> CasPol exe -m -ag 1.2 -url file:// \\ShawnFa -Srv / Tools / * FullTrust

Yes you can run an application from the shared network but it is not a good practice to run an application form the network. In order to run an exe from a network share you will have to explicitly grant permissions to that application since .Net applications generally obey to much stricter security rules. To do so you will have to enter the Caspol command (once) in your computer, through the Command Prompt window (Start->All Programs->Accessories->Command Prompt). For example, If you want to trust everything on the share \\ShawnFa-Srv\Tools, the command:  CasPol.exe -m -ag 1.2 -url file://\\ShawnFa-Srv/Tools/* FullTrust

另一个例子c:\\ \\ WINDOWS\Microsoft.NET \ Framework \v2.0.50727 \CasPol -pp off -m -ag 1.2 -ur Z:\ APPNAME .exe FullTrust

Another example c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CasPol -pp off -m -ag 1.2 -url Z:\APPNAME.exe FullTrust

其中:
Z :映射的驱动器号 APPNAME :您要执行的应用程序(通常这是作业的名称)

Where:
Z: the mapped drive letter
APPNAME: the application you want to execute (usually this is the job's name)

此命令将修改您计算机上的安全策略,以允许完全信任地执行指定的应用程序。当然,最简单的方法就是将exe文件本地复制到没有问题的地方。

此外,您还可以参考MSDN < a href ="http://blogs.msdn.com/shawnfa/archive/2004/12/30/344554.aspx">资源

Additionally you can also refer to the MSDN resource also

谢谢&问候

Arjuna
______________________________________________________________________________________
***************如果确实有帮助,请将此标记为答案。或回发****************

Arjuna
______________________________________________________________________________________

***************Please mark this as answer, if it is really helped. Or Post back****************


这篇关于分享节目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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