#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_UseX64=n
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
#include
$path = FileSelectFolder("°øÀ¯ÇÒ Æú´õ¸¦ ¼±ÅÃÇϼ¼¿ä.", "")
$aaa = StringSplit($path, "\")
$name=$aaa[$aaa[0]]
if StringInStr($path,":")=0 or $path="" or $name=""then
msgbox(1,"Error",$path &@CRLF&" ´Â À߸øµÈ ÁöÁ¤ÀÔ´Ï´Ù.")
Exit
EndIf
if msgbox(1,$name,$path &@CRLF&" ¸¦ °øÀ¯ÇϽðڽÀ´Ï±î.")=1 then
run('c:\windows\system32\net share "'& $name & '"="' & $path &'" /grant:everyone,full /grant:guest,full /grant:administrator,Full /grant:"authenticated users",full /users:20')
run('c:\windows\system32\icacls "' & $path & '" /grant guest:(OI)(CI)(F,AD) /grant everyone:(OI)(CI)(F,AD) /T ')
endif
|
|