Question Locked

how to use remove-item cmdlets to delete hidden folder files ?

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I want to delete text files from 'temp' folder who have hidden sub folder 'temp2'. This sub folder also contain text files which I need to delete at the same time. I tried the following command but it's not working.

Remove-Item "C:\Documents and Settings\Administrator\Desktop\temp\*" -force -recurse -include *.txt

It is deleted only text file of 'temp' folder. Kindly help me to sort out this issue.

Thanks & Regards

Ketan

1 reply

This discussion is closed to new replies.