Jump to content

Search the Community

Showing results for tags 'autoit folder share'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements and Site News
    • Administration
  • AutoIt v3
    • AutoIt Help and Support
    • AutoIt Technical Discussion
    • AutoIt Example Scripts
  • Scripting and Development
    • Developer General Discussion
    • Language Specific Discussion
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • AutoIt Team
    • Beta
    • MVP
  • AutoIt
    • Automation
    • Databases and web connections
    • Data compression
    • Encryption and hash
    • Games
    • GUI Additions
    • Hardware
    • Information gathering
    • Internet protocol suite
    • Maths
    • Media
    • PDF
    • Security
    • Social Media and other Website API
    • Windows
  • Scripting and Development
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Location


WWW


Interests

Found 1 result

  1. How to share a folder as in the picture or remove it from the share? And I also want to check permission = Full Control,Change,Read #RequireAdmin #include <NetShare.au3> Local $sShareFolderNameAndDir = @DesktopDir & "\AutoIt Share Folder" Local $sShareName = "AutoIt Share Folder" $aInfo = _Net_Share_ShareGetInfo(@ComputerName, $sShareName) $PermissionSharedInfo = _Net_Share_PermStr($aInfo[3]) If _Net_Share_ShareCheck(@ComputerName, $sShareName) = -1 Then ConsoleWrite("Not shared " & $sShareFolderNameAndDir & @CRLF) _Net_Share_ShareAdd(@ComputerName, $sShareName, 0, $sShareFolderNameAndDir, "Share Comment Folder") ConsoleWrite("Permission shared " & $PermissionSharedInfo & " " & $sShareFolderNameAndDir & @CRLF) Else _Net_Share_ShareDel(@ComputerName, $sShareName) ConsoleWrite("Removed from sharing " & $sShareFolderNameAndDir & @CRLF) ConsoleWrite("Permission shared " & $PermissionSharedInfo & " " & $sShareFolderNameAndDir & @CRLF) EndIf
×
×
  • Create New...