Double-click it, in general tab, use variable FileName as file name source. Go to properties tab, record size into variable SizeVariable. Double-click File System Task, use Delete file as the operation to delete file.
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have any feedback, please tell us. Marked as answer by km Monday, February 22, PM. Monday, February 22, AM. I'd use a For Each loop to iterate your directory, put the File Properties task inside the loop, and connect it to a File System task to delete the file.
Use an expression on a precedence constraint right-click the constraint and choose edit that checks file size for 0.
John Welch www. But I do not want to include mp3 and mp4. I just want to do this for log and archive files zip, tar, etc. Edit: As Eric Renouf notes, if your version of find doesn't support the -delete option, use the -exec option. Sign up to join this community. The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group.
Create a free Team What is Teams? Learn more. Asked 5 years, 7 months ago. Active 1 year, 8 months ago. Viewed 41k times. Delete the file using the 8.
Office Office Exchange Server. Not an IT pro? Windows Server TechCenter. Sign in. United States English. Ask a question. Quick access. Search related threads. Remove From My Forums. Asked by:. Archived Forums.
File Services and Storage. Sign in to vote. I have to do it at the command line thanks,. Monday, October 31, PM. Note: Answer "No" for all files except the one you want to delete.
You can concatenate multiple primaries to take their conjunction in some versions, you can put -a or -and between them. In zsh, you can use the L glob qualifier. A range is simply an upper bound AND a lower bound.
From the find spec :. Conjunction of primaries; the AND operator is implied by the juxtaposition of two primaries or made explicit by the optional -a operator. The second expression shall not be evaluated if the first expression is false. Sign up to join this community.
The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Learn more.
Delete files of certain size range Ask Question. Asked 9 years, 8 months ago. Active 9 years, 8 months ago. Viewed 33k times. For example I have the following list of files: -rw-r--r-- 1 smsc sys Apr 30 stats.
0コメント