Jump to content
Sign in to follow this  
erikson

folder delete problem

Recommended Posts

erikson

hi codemasters!

it is possible to delete all folders who begin with new*****

where *** is random

so i have i folder TEST and in that folder i have 10 other folders line new01, new02 , and another folder system

i whant to delete all the folders who begin with new

please help me

Share this post


Link to post
Share on other sites
xcal

Sure, you could run the files in the folder through a loop with StringLeft checking for 'new.' Or you could probably just run del with @comspec using wildcards.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×