dbustamante
IS-IT--Management
Hey all,
Ive been givin the task to come up with a VBS sript to search and delete all music files my users save to their computers. so ive tried coming up with a log on script that will search and delete all music files on their profile. im pretty new at script writing but this is what ive come up with so far.
Dim fso
fso.DeleteFile "C:\Documents and Settings\*current users*\desktop\*.MP3*", True
but when ever i run it i get an error message "bad name or number" does anybody see what im missing or where i went wrong? Also would it be possible to add .wma and .mp4 to this script or no?
Ive been givin the task to come up with a VBS sript to search and delete all music files my users save to their computers. so ive tried coming up with a log on script that will search and delete all music files on their profile. im pretty new at script writing but this is what ive come up with so far.
Dim fso
fso.DeleteFile "C:\Documents and Settings\*current users*\desktop\*.MP3*", True
but when ever i run it i get an error message "bad name or number" does anybody see what im missing or where i went wrong? Also would it be possible to add .wma and .mp4 to this script or no?