Deleting files *.sav that contains a portion "ADR" in file name.

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Deleting files *.sav that contains a portion "ADR" in file name.

Carlos Renato-2
Dear friends of this important list

      I have any files in a diretory for example:
--------------------------------------------
MY FILES:
OnLineClient1.sav
OnLine_Client1_ADR.sav
OnLineClient2.sav
OnLine_Client2_ADR.sav
--------------------------------------------

I want to delete the files that contains "ADR" in
the file name only. Exists syntax for solve my
doubt?
Thanks a million for all responses.

Carlos Renato
Statistician
Recife-PE-Brazil
Reply | Threaded
Open this post in threaded view
|

Re: Deleting files *.sav that contains a portion "ADR" in file name.

Simon Phillip Freidin
host command=['c:'
   'cd "c:\path"'
   'del "*ADR.sav"'].

At 01:33 AM 6/12/2006, Carlos Renato wrote:

>Dear friends of this important list
>
>      I have any files in a diretory for example:
>--------------------------------------------
>MY FILES:
>OnLineClient1.sav
>OnLine_Client1_ADR.sav
>OnLineClient2.sav
>OnLine_Client2_ADR.sav
>--------------------------------------------
>
>I want to delete the files that contains "ADR" in
>the file name only. Exists syntax for solve my
>doubt?
>Thanks a million for all responses.
>
>Carlos Renato
>Statistician
>Recife-PE-Brazil


Research Database Manager and Analyst
Melbourne Institute of Applied Economic and Social Research
The University of Melbourne
Melbourne VIC 3010 Australia
New Tel: (03) 8344 2085 New Fax: (03) 8344 2111
http://www.melbourneinstitute.com/hilda/