The Clear-Content cmdlet enables you to erase the contents of a file without deleting the file itself. For example, suppose you run this command:
1 | Clear-Content c:\scripts\test.txt |
The Clear-Content cmdlet enables you to erase the contents of a file without deleting the file itself. For example, suppose you run this command:
1 | Clear-Content c:\scripts\test.txt |