Delete more then 1 file

  • Thread starter Thread starter Mike
  • Start date Start date
M

Mike

Hi,

Class File contains Sub Delete.
I can delete one file: File.Delete(1.txt)
But I can not delete a few files : File.Delete(*.txt)

Of course I can use loop and delete every file : File.Delete(strCurrentFile)
or run : Shell("del *.txt, AppWinStyle.MinimizedFocus, True)

But maybe exist Sub for deleting multi-files ?

Thanks
 
Mike said:
Class File contains Sub Delete.
I can delete one file: File.Delete(1.txt)
But I can not delete a few files : File.Delete(*.txt)

Of course I can use loop and delete every file :
File.Delete(strCurrentFile) or run : Shell("del *.txt,
AppWinStyle.MinimizedFocus, True)

But maybe exist Sub for deleting multi-files ?

Even if there was a function - I don't think so - it would contain an
internal loop.


--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html
 
Back
Top