|
-
Dec 15th, 2004, 02:38 PM
#1
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|