Cindy, please read section "8.4.13" in the STAF User's Guide at 
http://staf.sourceforge.net/current/STAFUG.htm#HDRFSSRV and you can find 
the answer yourself without having to post a question.  Here's an example 
from this section.

Goal: Delete all entries with an extension of "txt" in C:\MyFiles. Match 
the extension in a case insensitive manner. Do not recurse down 
subdirectories. 
Syntax:  DELETE ENTRY C:\TEMP CHILDREN EXT txt CASEINSENSITIVE CONFIRM 

--------------------------------------------------------------
Sharon Lucas
IBM Austin,   [email protected]
(512) 286-7313 or Tieline 363-7313




From:   Cindy Zhu <[email protected]>
To:     "[email protected]" 
<[email protected]>
Date:   04/15/2011 10:29 AM
Subject:        [staf-users] Delete a specific type file



Hi,
 
What is the STAF command to delete all files with extension ".txt" only in 
a folder?
 
Thanks,
 
Cindy
 
 
 
------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 

application availability and disaster protection. Learn more about 
boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
staf-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/staf-users

------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
staf-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to