Share this question

Welcome to Teachnovice Q&A, where you can ask questions and receive answers from other members of the community.

This is a collaboratively edited question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Setting documents folder as a network public folder from cmd in Windows

0 like 0 dislike


I am trying to create a batch file for setting the user documents folder in Windows so that it is accessible from the network like the public folder is by default, pretty much making it shared with everybody.

I can't figure out the syntax for it, though. So far tried messing with cacls but without any luck.

I am testing it on Windows Vista and Windows 7.

asked Dec 30, 2011 by anonymous  
retagged Apr 19, 2013
Why would you want to do this?

1 Answer

0 like 0 dislike
Best answer


net share "My files=%USERPROFILE%\Documents"
answered Dec 30, 2011 by anonymous  
selected Nov 6, 2012 by sarwana