Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| powershell_file_operations [2021/10/22 14:21] – mgupton | powershell_file_operations [2022/02/23 17:45] (current) – mgupton | ||
|---|---|---|---|
| Line 7: | Line 7: | ||
| cmd /r dir /s /b c: | cmd /r dir /s /b c: | ||
| </ | </ | ||
| + | |||
| + | <code powershell> | ||
| + | get-childitem .\ -recurse | where {$_.extension -eq " | ||
| + | | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | |||
| + | === Delete file if exists and recreate it === | ||
| + | |||
| + | <code powershell> | ||
| + | $filename = " | ||
| + | </ | ||
| + | |||