I need to come out with a console application to check for 7 SASE Lab Tools folders inside C:\Work\Build.
These different SASE lab Tools folders are date stamped
An example is shown below:
-
C:\Work\Build\SASE Lab Tools -
C:\Work\Build\SASE Lab Tools.01052011 -
C:\Work\Build\SASE Lab Tools.02052011 -
C:\Work\Build\SASE Lab Tools.03052011 -
C:\Work\Build\SASE Lab Tools.04052011 -
C:\Work\Build\SASE Lab Tools.05052011 -
C:\Work\Build\SASE Lab Tools.06052011
where the date stamp format is ddMMyyyy
so if for example i have C:\Work\Build\SASE Lab Tools.07052011 now(8th and latest one) how do i make sure that i can delete the C:\Work\Build\SASE Lab Tools.01052011 folder? I need to force delete this folder too.. as there are readonly files inside it.
Thanks!
Could you sort them then
Skip7 and then delete the remainder?