Your Universal Remote Control Center
RemoteCentral.com
Complete Control by URC Forum - View Post
Up level
Up level
The following page was printed from RemoteCentral.com:

Login:
Pass:
 
 

Original thread:
Post 98 made on Saturday July 24, 2021 at 08:31
Ernie
Founding Member
Joined:
Posts:
November 2001
85
On July 23, 2021 at 18:55, Johnny Canuck said...
If you add "/f" to the registry command it should delete the key without having to do a confirmation. Using that logic, if you create a windows batch file with the following commands, you should be able to automate the process to the point of the login dialog box popping up:

reg delete HKEY_CURRENT_USER\Software\Universal Remote Control, Inc\Complete Control Program\Recent File List /f

C:\Program Files (x86)\Universal Remote Control, Inc\Complete Control Program\ccp.exe


You may need to edit your run command if CCP is in a different location.

Yep!  I ended up creating this PowerShell file:

reg delete "HKEY_CURRENT_USER\Software\Universal Remote Control, Inc\Complete Control Program\Recent File List" /f
& "C:\Program Files (x86)\Universal Remote Control, Inc\Complete Control Program\ccp.exe"
exit 0


I saved it as

C:\Program Files (x86)\Universal Remote Control, Inc\Complete Control Program\ccp.ps1
 
and edited the start menu icon so the so the "Target" says:

C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -File "C:\Program Files (x86)\Universal Remote Control, Inc\Complete Control Program\CCP.ps1"

You have to first find the icon in the Start Menu, right-click and hit "Open File Location", then right-click the Shortcut and hit "Properties".

So at least it is partially automated.


Hosting Services by ipHouse