Wednesday, May 02, 2007

Script: Delete a folder from every users "Network Share" A.K.A. WKSP

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&setlocal
pushd c:\WKSP
for /f "delims=" %%a in ('dir /B/S/AD my*music') do del /Q /F /S "%%a\*.*"
popd
Save it as a .bat file and you are good to go!

Remember to test the script! Just add an echo before the delete command. You can see the example in red below...

@echo off&setlocal
pushd c:\WKSP
for /f "delims=" %%a in ('dir /B/S/AD my*music') do echo del /Q /F /S "%%a\*.*"
popd
Have Fun!

-Admin Bromo
Ian Lilkendey

Hot Sauce :)

2 comments:

aaron said...

hi to you admin:) my question for the univesal ghost is:
where i need to put the mysysprep.inf file in my image?
that when i use my image in different machine i do not need to put again and again the information off install off windows and the computer do it automatic???
and my second question is:what i need to do? i want to creat my image on dvd disc...so...in how way i burn the image on dvd disk that when i boot from the disk the ghost softwher go up in dos mode and i can to run it in frome the svd disk to the hard disk ??
beacuse i have alot of different computers in my work
you can wright me to my e-mail
aaron12345@walla.co.il

aaron said...

1 Comment - Show Original Post

aaron said...
hi to you admin:) my question for the univesal ghost is:
where i need to put the mysysprep.inf file in my image?
that when i use my image in different machine i do not need to put again and again the information off install off windows and the computer do it automatic???
and my second question is:what i need to do? i want to creat my image on dvd disc...so...in how way i burn the image on dvd disk that when i boot from the disk the ghost softwher go up in dos mode and i can to run it in frome the svd disk to the hard disk ??
beacuse i have alot of different computers in my work
you can wright me to my e-mail
aaron12345@walla.co

Disclaimer

All data and information provided on this site is for informational purposes only. adminbromo.blogspot.com makes no representations as to accuracy, completeness, currentness, suitability, or validity of any information on this site and will not be liable for any errors, omissions, or delays in this information or any losses, injuries, or damages arising from its display or use. All information is provided on an as-is basis.