Solved Empty the download folder. powershell command.


krdondon

Member
Local time
7:28 AM
Posts
11
OS
Windows 10
Get-ChildItem $env:USERPROFILE\downloads $env:USERPROFILE\Pictures | Remove-Item -recurse
Error occurred.

$env:USERPROFILE\downloads
$env:USERPROFILE\Pictures
I want to write two paths at once.
Is it possible?.

powershell.exe -Command "& {Get-ChildItem $env:USERPROFILE\downloads | Remove-Item -recurse}"
I am using it like this Create shortcut icon.
 
Windows Build/Version
Version 10.0.19044.1645

My Computer

System One

  • OS
    Windows 10
powershell.exe -Command "& {Get-ChildItem $env:USERPROFILE\downloads,$env:USERPROFILE\Pictures| Remove-Item -recurse}"
Creates a comma in the middle.
Thank you.
 

My Computer

System One

  • OS
    Windows 10
Back
Top Bottom