For example, if you do not add a pause to The. py file, you will not be able to see it even if an error occurs.
Open the Registry: hkey_classes_root \ python. file \ shell \ open \ command
Change the default value:
CMD/c @ echo on &"C: \ Program Files (x86) \ ArcGIS \ python26 \ arcgis10.0 \ python.exe" "% 1"% * & Pause
If there is a python path, do not change it to another one.
There is a strange problem, if you directly run CMD/C"C: \ Program Files (x86 )\......"
An error will be reported, and the file c: \ Program cannot be found, which is obviously enclosed in quotation marks. It is strange. As a result, I added a meaningless @ echo on & not displayed. It does not work. You can execute this pyProgram. Finally
Press any key to continue...
You can use a simple py script for verification:
Print "Helloworld"
For other files, such as EXE bat cmd
They are associated with: "% 1" % *. I think you can use this method to add it, but the black window of CMD will pop up. Therefore, you can process such scripts.
In fact, I usually use a very useful program to open and add !!
You can customize the file according to the file, folder type, and file suffix, so that you can open the program you often use.