Modify the registry and add a pause after running the program. It is convenient to view a transient program. | open the software introduction.

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.