Results 1 to 5 of 5

Thread: kill command

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jun 2000
    Posts
    25
    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.


  2. #2
    Hyperactive Member
    Join Date
    Sep 1999
    Location
    Cleveland, Ohio
    Posts
    263
    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.


  3. #3

    Thread Starter
    Junior Member
    Join Date
    Jun 2000
    Posts
    25

    Red face 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.

  4. #4
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    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.

  5. #5
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    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
  •  



Click Here to Expand Forum to Full Width