HI all.

A simple question.

I need to use a system command to delete all files in a directory except
one.

Foobar.ldb
Barfoo.ldb
Raboof.ldb
Keep.ldb

I want to delete all except the keep.ldb and there could be various other
files.

I am trying to use this command

Any help???

System("erase /f e:\\dir\\*.ldb");

Or
(`erase /f "e:\\dir\\*.ldb"`)

How do I substitute for the * 

$file =~ (/keep/I);  ????

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to