一个批处理文件
功能:建立5个文件夹,设置共享,设置权限。
@Echo Off
set TEMP=c:\FaxFolder\
md %TEMP%DestFax
md %TEMP%SourFax
md %TEMP%ExceptionPdf
md %TEMP%ReceiverPdf
md %TEMP%Template
net share DestFax=%TEMP%DestFax /grant:everyone,full
net share SourFax=%TEMP%SourFax /grant:everyone,full
net share ExceptionPdf=%TEMP%ExceptionPdf /grant:everyone,full
net share ReceiverPdf=%TEMP%ReceiverPdf /grant:everyone,full
net share Template=%TEMP%Template /grant:everyone,full
echo y|cacls %TEMP%DestFax /T /G everyone:F
echo y|cacls %TEMP%SourFax /T /G everyone:F
echo y|cacls %TEMP%ExceptionPdf /T /G everyone:F
echo y|cacls %TEMP%ReceiverPdf /T /G everyone:F
echo y|cacls %TEMP%Template /T /G everyone:F
取消共享
@Echo Off
net share DestFax /del
net share SourFax /del
net share ExceptionPdf /del
net share ReceiverPdf /del
net share Template /del
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步