以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  如何控制User组只能上传和浏览附件不能删除  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=123039)

--  作者:andyd
--  发布时间:2018/8/7 9:10:00
--  如何控制User组只能上传和浏览附件不能删除

请教。

User1,A表,上传附件列


--  作者:有点甜
--  发布时间:2018/8/7 9:42:00
--  

如果是指ftp,参考

 

http://www.foxtable.com/webhelp/scr/3251.htm

 

只有高级开发版有此功能。如果你的是试用版,你可以用不同的ftp账号登陆。


--  作者:andyd
--  发布时间:2018/8/7 9:56:00
--  

不想用ftp,服务器还得开ftp服务,如果用网络共享的方式呢?


--  作者:有点甜
--  发布时间:2018/8/7 10:08:00
--  
以下是引用andyd在2018/8/7 9:56:00的发言:

不想用ftp,服务器还得开ftp服务,如果用网络共享的方式呢?

 

共享方式的权限比较麻烦,但如果只是【不能删除】的话,你可以直接设置共享文件夹的权限不能删除,即可。

 

登陆共享文件夹的方式,参考

 

Dim p As new Process()
p.StartInfo.FileName = "cmd.exe"
p.StartInfo.UseShellExecute = False \'关闭Shell的使用
p.StartInfo.RedirectStandardInput = True \'重定向标准输入
p.StartInfo.RedirectStandardOutput = True \'重定向标准输出
p.StartInfo.RedirectStandardError = True \'重定向错误输出
p.StartInfo.CreateNoWindow = True \'设置不显示窗口
p.Start()
p.StandardInput.WriteLine( "net use * /del /y")
p.StandardInput.WriteLine( "net use \\\\192.168.1.240 2014 /user:administrator")
p.StandardInput.WriteLine("exit")