Results 1 to 6 of 6

Thread: Delete Multiple Files using *

Threaded View

  1. #1

    Thread Starter
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Resolved Delete Multiple Files using *

    I was trying to do something like this (that worked with the Kill method of VB6)

    System.IO.File.Delete(OrderInfo.ParentFolderPath & "\NJ0*.DTA")

    because there are several files that start with NJ0 and end with .DTA

    for example

    NJ025.DTA
    NJ026.DTA

    but there is no order to these numbers, so I need to clear them all out... and the above code returns an "illegal character in path" which is because of the "*"

    so is there any way to do a multiple delete like this?
    Last edited by kleinma; Dec 15th, 2004 at 02:48 PM.

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