Silently unshare a folder using Batch File
-
29-10-2019 - |
Question
share and re-share a folder. I got the re-sharing part where i am stuck at is the un-sharing.
I use this code
NET SHARE d:\foldername /delete
Which deletes the share but if there are people accessing the folder there is prompt to continue, now i want this batch file to run silently without any prompts. Any thoughts ?
No correct solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow