Thread: Wildcards
View Single Post
Old Jul 10th, 2007, 6:23 PM   #2
mackenga
Professional Programmer
 
Join Date: Mar 2005
Location: Glasgow, Scotland
Posts: 317
Rep Power: 4 mackenga is on a distinguished road
Em, yes? I can honestly say I don't get the gist of it. Worse, that looks .NETty to me - this is the 'old school' VB forum!

If I understand what you're asking, you want to know how to get the system to delete all files in the cookies directory of each directory within "Documents and Settings" on all drives.

Well, not sure about .NET, but in classic VB you'd probably be interested in the Scripting.FileSystemObject. Drives and directories are very different things; enumerating the drives on a PC is very different from enumerating directories. There might be a neat way to do this in .NET, I don't know, but I'd do it using FileSystemObject and friends.
__________________
"I'm not a genius. Why do I have to suffer?"
mackenga is offline   Reply With Quote