Script: Delete a folder from every users "Network Share" A.K.A. WKSP
Hey everyone! Sorry for the hiatus. Here is a little script I put together to delete all the "My Music" folders under WKSP. Seems like a simple enough task, until you have to do it. This script should save you a ton of time (hopefully).
Here is the code:
@echo off&setlocalSave it as a .bat file and you are good to go!
for /f "delims=" %%a in ('dir /B/S/AD my*music') do del /Q /F /S "%%a\*.*"
Remember to test the script! Just add an echo before the delete command. You can see the example in red below...
@echo off&setlocalHave Fun!
for /f "delims=" %%a in ('dir /B/S/AD my*music') do echo del /Q /F /S "%%a\*.*"
Hot Sauce :)