create and share a folder with .bat file

Simple .bat file to create a folder and share that folder with full permission and give access to Everyone. Just put below four lines of code into any textpad save a .bat file.


Md E:\MyFolder
Net Share MyShare=E:\MyFolder
Cacls E:\MyFolder /e /r Everyone
Cacls E:\MyFolder /e /g Everyone:C

Comments

Popular posts from this blog

Java Task Service - Sterling Integrator

Hibernate Connection Fails if there is Database inconsistency or DB fail-over (Oracle RAC)

​ Configure External Databases to IBM Sterling B2B Integrator