Setting documents folder as a network public folder from cmd in Windows
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.
net share "My files=%USERPROFILE%\Documents"
精彩评论