Jump to content

Recommended Posts

Posted

Sorry all,because my English very bad.

My computer has drives : C - D - E v.v...

I want set "share" or "not share" drive . ( C or D or E )

Can AutoIT write script this ?

Please help me.

Thanks !

Posted (edited)

Try using the 'net share' command in cmd.

For example:

#include <Process.au3>
_RunDos('net share c$ /Delete') ;This will remove the share if it exists
_RunDos('net share c$=c:')      ;This will make the share if it does not existoÝ÷ ØêÚºÚ"µÍÚ[ÛYH  ÔØÙÜË]LÉÝÂ[ÚQ]J    ÌÎNÐÉÌÎNÊBÙÐÞ
    ÌÎNÉÌÎNË  ÌÎNÕHÈ]HÈÝÚY ÌÎNÊBÚQ]J   ÌÎNÐÉÌÎNÊBÙÐÞ
    ÌÎNÉÌÎNË  ÌÎNÕHÈ]HÈÚY   ÌÎNÊB[ÈÚQ]J    ÌÍÓ]BWÔ[ÜÊ    ÌÎNÛ]ÚH ÌÎNÈ [È ÌÍÓ] [È ÌÎNÉÌÍÏIÌÎNÈ   [È ÌÍÓ] [È ÌÎNÎÌÎNÊB[[Â[È[ÚQ]J    ÌÍÓ]BWÔ[ÜÊ    ÌÎNÛ]ÚH ÌÎNÈ [È ÌÍÓ] [È ÌÎNÉÌÍÈÑ[]IÌÎNÊB[[
Edited by Gabburd

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...