Link to home
Start Free TrialLog in
Avatar of drmarston
drmarston

asked on

Need a script to delete files with a number in the neame

Hi experts!
I need this fast so I don't have the time to hash through it, and besides, I know somebody out there has already solved it  :)

I need a script that will look at the file names in a folder and delete the ones containing a number.
I have:
c:\folder\file
c:\folder\file1
c:\folder\file2
c:\folder\file3
etc
I need to delete all the  "file1", "file2", and "file3"..., but leave "file" intact
batch or VBscript will be the easiest to implement..
Thanks!
SOLUTION
Avatar of oBdA
oBdA

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of drmarston
drmarston

ASKER

Sirbounty: works perfectly, Thanks!
oBdA: I got an error with yours, but appreciate the speedy response!