Click here to Skip to main content
15,881,424 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
sDelete with file mask option is to delete only files specified in the file mask. Can we do this?
Posted
Updated 9-Feb-11 7:19am
v2
Comments
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    
Really?
Sergey Alexandrovich Kryukov 9-Feb-11 13:39pm    
Re-load this page, chances are, you will see it.
--SA

1 solution

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:

C#
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!

Cheers!
 
Share this answer
 
v2
Comments
Nish Nishant 9-Feb-11 15:56pm    
Good response, voted 5.
Manfred Rudolf Bihy 9-Feb-11 16:02pm    
Thanks Nishant!
Sergey Alexandrovich Kryukov 8-Mar-11 13:04pm    
As easy as that, a 5.
--SA

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900