Question

Locked

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

By tathedketan ·
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

This conversation is currently closed to new comments.

0 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Share your knowledge
Back to Software Forum
0 total posts (Page 1 of 1)  

Related Discussions

Related Forums