|
-
Jun 20th, 2000, 10:34 AM
#1
Thread Starter
Junior Member
I am just getting started with VB and have decided to make a program that kills all my cookies.
The problem that I am having is the kill command.
Does the kill command recognize wildcards? i.e. :
kill "C:\Windows\Cookies\*.txt"
thanks for any help you can give me.
-
Jun 20th, 2000, 10:42 AM
#2
Hyperactive Member
Well, if you tested it, you should have gotten an error, thus meaning no, it doesn't support wildcards 
You need to find the specific file name of a file and then use the command.
-
Jun 20th, 2000, 11:11 AM
#3
Thread Starter
Junior Member
kill command
does anyone know if there is a way to delete all the files in a directory with a like extension at the same time without knowing the full file names?
As in something like a wildcard ?
I want to delete all the cookies in my cookies directory when i hit a command button inside my project.
-
Jun 20th, 2000, 07:06 PM
#4
Frenzied Member
yeah you can do it...
Loop trough all files in that dir, check the last 4 lCase(charachters) and when it says
.txt then Kill it...
Jop - validweb.nl
Alcohol doesn't solve any problems, but then again, neither does milk.
-
Jun 20th, 2000, 07:09 PM
#5
transcendental analytic
I think you have to use dir function to return your files and then remove each of them
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|