Click here to Skip to main content
13,446,392 members (34,780 online)
Rate this:
Please Sign up or sign in to vote.
See more:
sDelete with file mask option is to delete only files specified in the file mask. Can we do this?
Posted 9-Feb-11 7:18am
Updated 9-Feb-11 7:19am
Sandeep Mewara 9-Feb-11 13:20pm
Question title is for title and body for details. Kindly, post your question properly next time.
Sandeep Mewara 9-Feb-11 13:20pm
BTW, your question is not quite clear. Use 'Improve Question' link and edit/update it.
vanikanc 9-Feb-11 13:22pm
For some reason, I am unable to see the text box to enter the problem, so I fit it in the subject line. And the subject line pretty much sums up the problem.

Thank you.
Yusuf 9-Feb-11 13:29pm
SAKryukov 9-Feb-11 13:39pm
Re-load this page, chances are, you will see it.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Let's assume I have a directory called D:\Test that contains some files starting with "Index1" followed by some other characters. If I wanted to securly delete those files I'd do this:

sdelete -p 10 D:\Test\Index1*

This would delete all files in directory D:\Test that started with "Index1". If I wanted to do this recursively I'd add the command line option -s.

Hope that helps you!

Nishant Sivakumar 9-Feb-11 15:56pm
Good response, voted 5.
Manfred R. Bihy 9-Feb-11 16:02pm
Thanks Nishant!
SAKryukov 8-Mar-11 13:04pm
As easy as that, a 5.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web04 | 2.8.180314.2 | Last Updated 9 Feb 2011
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100