net share tmp=c:\temp /grant:admin,full /cache:auto
這是將c:\temp,設定分享,其分享名稱為tmp,權限指定給admin
所以本想利用for指令,如下,將某個資料夾下的所有子資料夾,一次設定成分享狀態,
for %1 in (c:\tmp\*.* )do ( net share %1=%1 /grant:admin,full /cache:auto )
但是一直試不出來,
請問,有何方式可以透過批次方式,一次設定好資料分享?
net share tmp=c:\temp /grant:admin,full /cache:auto
這是將c:\temp,設定分享,其分享名稱為tmp,權限指定給admin
所以本想利用for指令,如下,將某個資料夾下的所有子資料夾,一次設定成分享狀態,
for %1 in (c:\tmp\*.* )do ( net share %1=%1 /grant:admin,full /cache:auto )
但是一直試不出來,
請問,有何方式可以透過批次方式,一次設定好資料分享?
那……直接把你所謂的「某個資料夾」分享出來不就好了?!
∼一雙冷眼看人生;滿腔熱血酬知己∼
P.S.你可以叫我「阿斌」或「Alan」,請不要叫我mis339,謝謝。
書籤