Fix Python cmd line behavior!

 


run C:\utility\FileTypesMan.exe (from nirSoft)


Find *.py

Select *.py

Choose Action, New Action from the menu

The following dialog should appear.

Fill it out as indicated:

To fully understand the line below please use cmd /? > e:\temp.txt

NEW line 1 (which allows spaces in filenames): C:\Windows\System32\cmd.exe /k ""C:\Program Files\Python311\python.exe" "%1" "%*""

(The above line is actually correct even it may not work unless you update and then relaunch ztree)

(Also, close out of FileTypesMan and come back in to verify the settings were save and saved correctly)

Old line 1: C:\Windows\System32\cmd.exe /k "C:\Program Files\Python39\python.exe" %1 %*

Old line 2: "C:\Program Files\Python39\python.exe" "%1" %*

Old line 3: "C:\Windows\System32\cmd.exe /k C:\Program Files\Python39\python.exe "%1" %*

Old line 4: "C:\Windows\System32\cmd.exe" /k C:\Python36-32\python.exe "%1" %*