I was wondering if anyone knows the DOS command to grant/revoke file
sharing permissions of a shared folder.
Basically, I would like to share my USB key on the work network so
that I can access it on any work PC. Every morning, after plugging the
key, it takes (say) drive X:. I then share this as X$ and specify
permissions to my account following a sequence of right-clicks and
entering the names.
I'm hoping if this can be done by a DOS batch file or a VBS script, so
one can do the whole lot by just double-clicking this icon.
In regards to the sharing, it can be done using the NET SHARE dos
command but I don't know how to specify the access permissions as a
If anyone has ever touched this area, it will be appreciated to
receive your recommended solution.