使用vb.net上传文件 [英] upload a file using vb.net

查看:260
本文介绍了使用vb.net上传文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用vb2005.
我正在尝试将文件上传到服务器.

服务器名称为MyServer,在d驱动器中有xdir目录,在该目录中有udir.

我在MyServer中具有permision,但没有共享

\\ MyServer->权限
\\ MyServer \ d $->没有权限
\\ MyServer \ d $ \ xdir->没有权限
\\ MyServer \ d $ \ xdir \ udir->完全许可

我想上传到该文件夹​​,但使用My.Computer.Network.UploadFile命令时访问被拒绝.

如何将文件上传到该目录?

使用该服务器(MyServer)的人数约为100.每个人都具有uDir的管理员权限,因此任何浏览uDir的人都可以根据需要删除任何文件.

这是共享文件夹uDir的问题.我们不需要从MyServer直接访问,这是因为对d $驱动器和xDir文件夹没有权限,但是对uDir拥有完全权限.

我可以通过调整权限来做到这一点吗?
或有关将文件上传到uDir的任何想法?

I am using vb 2005.
I am trying to upload a file to a server.

server name is i.e. MyServer and in d drive there is xdir directory, in that directory there is udir.

I have permision in MyServer but there is no share

\\MyServer --> permission
\\MyServer\d$ --> no permission
\\MyServer\d$\xdir --> no permission
\\MyServer\d$\xdir\udir --> full permission

I want to upload to that folder but I got access denied while using My.Computer.Network.UploadFile command.

How can I upload files to that directory?

There is about 100 people using this server(MyServer). Everyone has admin priviledges on uDir, so anyone exploring uDir can delete any files as they wish.

This is the problem with sharing the folder uDir. We dont need direct access from MyServer, that is because no permission on d$ drive and xDir folder, but have full permission on uDir.

Can I do it with adjusting permissions?
Or any ideas about uploading files to uDir?

推荐答案

->没有权限
\\ MyServer \ d
--> no permission
\\MyServer\d


\ xdir->没有权限
\\ MyServer \ d
\xdir --> no permission
\\MyServer\d


\ xdir \ udir->完全许可

我想上传到该文件夹​​,但使用My.Computer.Network.UploadFile命令时访问被拒绝.

如何将文件上传到该目录?

使用该服务器(MyServer)的人数约为100.每个人都有uDir的管理员权限,因此任何浏览uDir的人都可以根据需要删除任何文件.

这是共享文件夹uDir的问题.我们不需要MyServer的直接访问,这是因为d
\xdir\udir --> full permission

I want to upload to that folder but I got access denied while using My.Computer.Network.UploadFile command.

How can I upload files to that directory?

There is about 100 people using this server(MyServer). Everyone has admin priviledges on uDir, so anyone exploring uDir can delete any files as they wish.

This is the problem with sharing the folder uDir. We dont need direct access from MyServer, that is because no permission on d


这篇关于使用vb.net上传文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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