Tuesday 22 December 2015

Sharing Resources with CMD Prompt...

Step1:- Suppose we have a folder/Directory name King in E: drive & we want to share that with command prompt.

Step2:- In above picture there is directory name king in e: drive.. & we want to share the same 

NET SHARE SHARENAME=PATH
NET SHARE KING=E:\KING

but by issuing this command only Read permission will be granted to the users like in the following example.


Suppose we want to grant Change permission for that folder then modify the above command. so that users can modify the data after accessing that folder.

net share king=e:\king /GRANT:everyone, Change



If you want to unshare the shared folder run the following command

net share sharename /del

net share king /del

ok you are done with sharing your data.






No comments:

Post a Comment