回复 1# li_dongyun - @echo off
-
-
- --------------------------------------------------------------------------------------------------------------
- --------------------------------------------------------------------------------------------------------------
- 1pause
- cls
- echo ----------------------------------------------
- echo 输入共享路径,按回车继续。比如d:\win11
- echo ----------------------------------------------
-
-
- set 共享名=asus-b660-d
- set 共享路径=D:\
-
-
-
-
-
-
-
-
- --------------------------------------------------------------------------------------------------------------
- --------------------------------------------------------------------------------------------------------------
- 1pause
- cls
-
- net share %共享名% /delete /y
- pause
- cls
-
- md %共享路径%
- net share %共享名%=%共享路径% /grant:everyone,full
- echo y|cacls %共享路径% /T /G everyone:F
- pause
- cls
-
- net share
- pause
- cls
-
- net share /help
- pause
- cls
-
- net share %共享名% /delete /y
- pause
- cls
-
- net share
- pause
- cls
复制代码 win11系统,局域网内作为共享主机,测试成功。 |