- Local time
- 5:10 PM
- Posts
- 1,044
- Location
- Central Florida, USA
- OS
- Win-11/Pro/64, Optimum 11 V5, 23H2 22631.3374
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
My Computer
System One
-
- OS
- Win-11/Pro/64, Optimum 11 V5, 23H2 22631.3374
- Computer type
- PC/Desktop
- Manufacturer/Model
- Home Made w/Gigabyte mobo/DX-10
- CPU
- AMD FX 6350 Six Core
- Motherboard
- Gigabyte, DX-10, GA-78LMT-USB3
- Memory
- Crucial, 16 GB
- Graphics Card(s)
- NVIDEA GeForce 210, 1GB DDR3 Ram.
- Sound Card
- Onboard
- Monitor(s) Displays
- 24" Acer
- Screen Resolution
- 1280x800
- Hard Drives
- Crucial SSD 500GB, SanDisk 126GB SSD, Toshiba 1TB HD
- PSU
- EVGA 500 W.
- Case
- Pac Man, Mid Tower
- Cooling
- AMD/OEM
- Keyboard
- 101 key, Backlit/ Mechanical Switches/
- Mouse
- Logitech USB Wireless M310
- Internet Speed
- Hughes Net speed varies with the weather
- Browser
- Firefox 64x
- Antivirus
- Windows Defender, Super Anti Spyware
- Other Info
- Given to me as DEAD, and irreparable.
Rebuilt with Gigabyte mobo, AMD cpu, 16GB ram and 500GB Crucial SSD.