![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Jul 2007
Posts: 1
Rep Power: 0
![]() |
Wildcards
this is my code not exaclty but youll get the jist of it
![]() if action = "cookies" then my.computer.filesystem.deletefile(Wild Here":\documentd and setting\"Wild Here"\cookies\"Wild Here") |
|
|
|
|
|
#2 |
|
Professional Programmer
Join Date: Mar 2005
Location: Glasgow, Scotland
Posts: 314
Rep Power: 4
![]() |
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?" |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Giving exceptions to wildcards ( * ) | kurt | Other Programming Languages | 6 | Nov 21st, 2005 6:35 AM |
| wxFileDialog wildcards | Dietrich | Python | 0 | Aug 4th, 2005 7:59 AM |