> > Now the script runs fine but I don't get all arguments from sys.argv. > > > > No mather how many files I mark in the explorer I only get one as an > > argument. > > You're missing out vital information: > > * How have you attached this code to the context menu? What was > the exact registry entry (or other method) you used?
>From a quick Google search, it seems that most of the context menu entries open a single file. If multiple files are selected then the command is called once for each file. The workaround seems to check if the processes is already running and if it is then to directly send it a "open" command. That being said, since you are opening a web browser (or so it seems to me based on the webbrowser.open), you should not have an issue because modern web browsers will open each link in a tab. To answer your question, you will not get more than one as an argument. That is expected behavior. Ramit Ramit Prasad | JPMorgan Chase Investment Bank | Currencies Technology 712 Main Street | Houston, TX 77002 work phone: 713 - 216 - 5423 -- This email is confidential and subject to important disclaimers and conditions including on offers for the purchase or sale of securities, accuracy and completeness of information, viruses, confidentiality, legal privilege, and legal entity disclaimers, available at http://www.jpmorgan.com/pages/disclosures/email. -- http://mail.python.org/mailman/listinfo/python-list