By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,952 Members | 1,908 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,952 IT Pros & Developers. It's quick & easy.

Scan drive for a file type and delete

P: 2
Hello,

I need your help. I need a script that look for *.Mp3 in hole HD and them delete it, if found one. Anyone can help me?

Signd,
Bonisson.
Jan 21 '08 #1
Share this Question
Share on Google+
1 Reply


kadghar
Expert 100+
P: 1,295
Hello,

I need your help. I need a script that look for *.Mp3 in hole HD and them delete it, if found one. Anyone can help me?

Signd,
Bonisson.
What have you tried so far? what version of VB are you using?

i think you can use DIR (path & "*.mp3") inside a DO/LOOP to search, or My.Computer.FileSystem to get directories, files, etc and then delete them but this wont work for all the versions of VB/VBA.
Jan 21 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.