从c#.net中的远程桌面访问文件夹 [英] accessing folder from remote desktop in c#.net

查看:328
本文介绍了从c#.net中的远程桌面访问文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在c#中访问远程桌面计算机上的图像文件夹。图像文件夹在远程计算机的桌面上。请帮助我。



谢谢

问候

joti parkash

i want to access the image folder on remote desktop computer in c#. Image folder is on desktop of remote computer.please help me .

thanks
regards
joti parkash

推荐答案

有两种情况:

1.如果远程文件夹在本地网络(LAN)中,则必须共享该文件夹用户必须具有读取权限的局域网访问它。



2.如果文件夹在互联网上,则该文件夹必须是虚拟文件夹-directory(在IIS中)并具有公共访问权限。例如,如果该文件夹是ASP.NET应用程序的子文件夹,那么应该在web.config中设置下一个设置以允许访问:



There are two cases:
1.If the remote folder is in your local network (LAN), that folder must be shared in the LAN in the way that your user must have Read right to access it.

2.If the folder is over the internet, than that folder must be into a virtual-directory (in IIS) and has public access. For example if that folder is a sub-folder of a ASP.NET application then should have the next setting in the web.config to allow access:

<!--
   Make Content folder accessible to all users!
  -->
  <location path="Content">
    <system.web>
      <authorization>
        <allow users="*" />
      </authorization>
    </system.web>
  </location>


我要求将pdf文件从本地远程服务器复制到我的计算机。我在运行应用程序时为此目的实现了应用程序在visual studio中正常工作pdf文件来自本地远程服务器任务,但当我在IIS中运行此应用程序并运行然后错误提交'找不到路径:Z:// --------;实际上我在我的本地任务中映射了远程服务器驱动器。 Plz帮我解决了这个问题
I have a requirement that copying pdf files from local remote servers to in my computer .I have implemented application for that purpose when I am running the application in visual studio working properly pdf files getting from local remote server mission but when I am hosting this application in IIS and running then error comming that 'could not find path :Z://--------; actually I mapped the remote server drive in my local mission. Plz help me how to solve this


这篇关于从c#.net中的远程桌面访问文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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