I need a simple script that can run with our AD logon.bat that searches the C drive and C Drive only for a file called acaddoc.lsp and deletes it wherever it finds it. Most likely it's in the C:\Users folder under whatever profiles are on the machine. But if possible I'd love it to search all of C because it could exist in the program folders as well.

I've never written scripts and if this is something too extensive to post for free, please contact me via PM and I'll happily pay to have it written.

0 Comments   [ + ] Show Comments


Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.


There's tons of scripts like this on these forums and Google.

Look for recursive file search.
Answered 02/27/2012 by: dchristian
Red Belt

Please log in to comment
Try this...

Answered 03/02/2012 by: 786_ak
Second Degree Green Belt

Please log in to comment
Unless you specifically need a vbs script, you could always go for...
...wich deletes the specified file from all subdirectories.
Answered 03/05/2012 by: andemats
Second Degree Black Belt

Please log in to comment
Answer this question or Comment on this question for clarity