Solved Empty the download folder. powershell command.


krdondon

New member
Local time
3:00 PM
Posts
2
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

krdondon

New member
Thread Starter
Local time
3:00 PM
Posts
2
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
Top Bottom