TM21
Banned
While writing my Win11Cleanup.bat program, I wanted a line of code that would empty out my Recycle Bin.
A most helpful member gave me this line:
PowerShell Clear-RecycleBin -DriveLetter C -force -ErrorAction:Ignore
It works GREAT on the little PC that I'm on now, (Running Windows 11/Pro/64, ver. 22H2, Build 22621.963.)
But, on another PC, that I just put together and installed the same ver. of Win-11 on, (from the same Flash Drive) that same line of code, in the same batch file does not empty the Recycle Bin at all. I see a little flash on the screen when that line executes, but the Recycle Bin is NOT emptied.
So I guess my question is, "What gives?".
Is some 'Service' missing on the second PC?
And what can I do to get that line of code working as it should on the second PC?
Help! Help!
TM
A most helpful member gave me this line:
PowerShell Clear-RecycleBin -DriveLetter C -force -ErrorAction:Ignore
It works GREAT on the little PC that I'm on now, (Running Windows 11/Pro/64, ver. 22H2, Build 22621.963.)
But, on another PC, that I just put together and installed the same ver. of Win-11 on, (from the same Flash Drive) that same line of code, in the same batch file does not empty the Recycle Bin at all. I see a little flash on the screen when that line executes, but the Recycle Bin is NOT emptied.
So I guess my question is, "What gives?".
Is some 'Service' missing on the second PC?
And what can I do to get that line of code working as it should on the second PC?
Help! Help!
TM