Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


Deleting multiple files at ones


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-21-2008, 08:39 AM
Newbie
 
Join Date: Apr 2008
Posts: 2
Default Deleting multiple files at ones

Hello, I'm a newbee so maybe this is a kind of stupid question.

I want te delete multiple files at ones. All the filenames begin with NLrebo.
So there is NLreboaa.bar, NLrebots.bar, NLrebo23.bar.... etc

I thought I could use the command FileDel (NLrebo*.bar) but that doesn't work.

How can I fix this..


Peter
Reply With Quote
  #2 (permalink)  
Old 04-21-2008, 10:58 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 2,847
Default

You can use something like: (don't forget to add the ArrayList named ArrayList1)
Code:
Sub App_Start
    FileSearch(ArrayList1,AppPath,"nlRebo*.bar")
    For i = 0 To ArrayList1.Count-1
        FileDel(ArrayList1.Item(i))
    Next
    ArrayList1.Clear
End Sub
Reply With Quote
  #3 (permalink)  
Old 04-21-2008, 03:00 PM
Newbie
 
Join Date: Apr 2008
Posts: 2
Default Thanks

Great, thanks

I will try that tonight.

Thanks for the quick respons

Peter
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Deleting and Re-Creating Menu Items with Same Name aerohost Bug Reports 4 06-22-2008 04:07 AM
Multiple Listviews tsteward Questions & Help Needed 2 04-20-2008 10:16 AM
Selecting multiple files using OpenDialog burd27 Questions & Help Needed 1 02-07-2008 05:06 PM
IDE Multiple File Support davidmw Basic4ppc Wishlist 3 11-20-2007 11:47 AM
Supporting multiple resolutions davidmw Basic4ppc Wishlist 2 07-24-2007 11:34 AM


All times are GMT. The time now is 01:51 PM.


Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0