not sure the title is entirely adequate so let me explain a little clearer. I have an existing powershell script which deletes backups of specific file types. What I want to be able to do is right click within any folder or on the destop, and run the script via a custom entry on the context menu. I know very little about programming and I'm not sure if I need another script which will:
- Determine the current folder
- Pass this value to the existing powershell script
- Have the powershell script process using the current directory value to detect and delete the backup files.
I think I need to create separate registry keys for HKEY_CLASSES_ROOT\DesktopBackground\Shell\ and HKEY_CLASSES_ROOT\Directory\Shell\ but I'm not sure what the keys should contain and what modifications I need to make to my script to make it run as outlined above.