Jump to content

Recommended Posts

Posted

I've found an alternative way to do this...

#RequireAdmin
_share_folder("Testy", "c:\test")
MsgBox(0, "", "done")
Exit

Func _share_folder($ShareName, $SharePath)
    If Not(FileExists($SharePath)) Then DirCreate($SharePath)
    RunWait(@ComSpec & " /C net share " & $ShareName & " /delete&net share " & $ShareName & "=" & $SharePath & " /GRANT:Everyone,FULL", "", @SW_HIDE)
EndFunc

 

Back up my hard drive? - I can't even find reverse gear.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...