Re: Deleting multiple files...
- Posted by Brian Broker <bkb at CNW.COM> Mar 03, 2000
- 475 views
On Thu, 2 Mar 2000 22:37:02 -0500, Everett Williams wrote: in response to... >The Jok3r wrote: > >>I'd like to know how to delete multiple files that are in a diferent >>folder...If any one knows, please send me the code.. >> >>I'd like to do the following, but in Euphoria >> >>/begin code/ >> >>deltree C:\myfolder\mysecondfolder\*.* -- The *.* representing all >> -- the files in that directory >> >>/end code/ >Considering the nature of the request, I'd be a lot more comfortable if >joker had a real name. I can think of legitimate reasons for the request, >but I can think of more than a few that I don't much like. Anonymity is >nice when one is among enemies. Anonymity when asking for help is >a bit odd. Maybe I'm missing something here, but this request makes >me most uncomfortable. I guess the bottom line is the same as it always will be: Don't run programs from an unknown source.... How would you reply to a request of: "How do I programmatically format a hard drive without user interaction?" I'm sure most of us could do it... and do you always read the entire source code before running a program (a 300-line program might get a bit tedious and a clever person could easily hide the end result in as many lines)? But I'd like to think that this group of helping phriendly people are above this type of behavior. BTW: 'deltree' expects the name of a directory, not a wildcard file name. If you want to delete all files from a directory, you should use 'del' or 'erase' instead of 'deltree'. If you want the entire directory removed, leave off the '\*.*'. -- Brian