Skip to content

Instantly share code, notes, and snippets.

@SteveBarnes-BH
Last active November 9, 2021 05:07
Show Gist options
  • Save SteveBarnes-BH/ab9d0746dedaab4c4cc68725ddaa1356 to your computer and use it in GitHub Desktop.
Save SteveBarnes-BH/ab9d0746dedaab4c4cc68725ddaa1356 to your computer and use it in GitHub Desktop.
Check the python registry keys to ensure parameters are passed to python when .py files are invoked
@echo OFF
REM This file queries the registry to see if python files are going to be provided with parameters
REM when called by invoking as <filename>.py
reg query HKEY_CLASSES_ROOT\.py_auto_file\shell\open\command
reg query HKEY_CLASSES_ROOT\Applications\py.exe\shell\open\command
reg query HKEY_CLASSES_ROOT\Python.File\shell\open\command
echo ALL the above values should end with "%%1" %%* if they don't then you will need to use regedit to fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment