Kill "*.TXT" will only kill the *.TXT files in the current directory. You can specify the path but I don't think you can kill all the text files in the associated subdirectories. I started out with nothing, and I still have most of it.
If you want to kill all the .TXT files in the current directory AND subdirectories, use the Shell command to shell out the DOS command with the appropriate switch. It is probably the easiest method.
Shell("cmd /c ERASE *.txt /s"
Make sure you are in the correct directory to start with of course!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.