t2d2c2 Posted May 17, 2007 Share Posted May 17, 2007 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 ! Link to comment Share on other sites More sharing options...
Gabburd Posted May 17, 2007 Share Posted May 17, 2007 (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 May 17, 2007 by Gabburd Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now