Jump to content
Sign in to follow this  
t2d2c2

help me about share drive

Recommended Posts

t2d2c2

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 !

Share this post


Link to post
Share on other sites
Gabburd

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

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×