Hello To copy a directory and its contents (files) to another directory, for example, the Test directory from C:\Divers\Test vers D:\Myfile Is this the "cleanest" command ? xcopy C:\Divers\Test D:\Myfile\Test /e Thanks
I use this: Code: Get-Item -EA 4 -Force -Path @("HKLM:\SOFTWARE\Classes","HKLM:\SOFTWARE\Classes\SystemFileAssociations") | Get-ChildItem -EA 4 -Force -Exclude @("SystemFileAssociations") | Get-ChildItem -EA 4 -Force -Include @("Shell") | Get-ChildItem -EA 4 -Force -Include @("print","printto") | Remove-Item -EA 4 -VB -Recurse -Force -WhatIf # Remove the -WhatIf if you want to do the actual removal of the context menu entries
@evissing Thanks I have another request, I'm modifying a registry key for Edge (adding "flags"), but sometimes, after an update, the key name changes partially, and the REG file is no longer valid. Isn't it possible with an command line to recognize part of the key and still be able to apply it every time ? This is the key and in bold what can change [HKEY_CURRENT_USER\Software\Classes\MSEdgeSSHTM.SP7KWQGIB46RITNUE4GU4U7EXY] Thanks
Restore the old Context Menu in Windows 11 reg.exe add "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f /ve