pyWinContext icon indicating copy to clipboard operation
pyWinContext copied to clipboard

Issues running the context command

Open Logonz opened this issue 1 year ago • 0 comments

I am running windows 11 and i just tried to use pyWinContext, I used the example in the readme and i get this error.

image

My reg file looks like this:

Windows Registry Editor Version 5.00

[-HKEY_CLASSES_ROOT\SystemFileAssociations\.txt\shell\pyWin-filedetails-0]

[HKEY_CLASSES_ROOT\SystemFileAssociations\.txt\shell]

[HKEY_CLASSES_ROOT\SystemFileAssociations\.txt\shell\pyWin-filedetails-0]
@="List File Details"

[HKEY_CLASSES_ROOT\SystemFileAssociations\.txt\shell\pyWin-filedetails-0\command]
@="cmd /c C:\\Users\\Logon\\AppData\\Roaming\\pyWinContext\\comStore\\242669942215147203472854078214285481705.bat "%1""

Bat file:

@echo off
echo Name: %~n1
echo Filetype: %~x1
echo FileSize: %~z1
pause

Working reg file:

Windows Registry Editor Version 5.00

[-HKEY_CLASSES_ROOT\SystemFileAssociations\.txt\shell\pyWin-filedetails-0]

[HKEY_CLASSES_ROOT\SystemFileAssociations\.txt\shell]

[HKEY_CLASSES_ROOT\SystemFileAssociations\.txt\shell\pyWin-filedetails-0]
@="List File Details"

[HKEY_CLASSES_ROOT\SystemFileAssociations\.txt\shell\pyWin-filedetails-0\command]
@="cmd.exe /s /c \"C:\\Users\\Logon\\AppData\\Roaming\\pyWinContext\\comStore\\242669942215147203472854078214285481705.bat \"%1\"\""

Where i use /s and escape the citations instead, this solved the issue.

Has anyone else run into this issue?

Logonz avatar Nov 03 '24 13:11 Logonz