473,395 Members | 1,411 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

ver 23 invokation on Windows

Hi Python experts!

With ver 22, I used to be able to invoke Python script by simply typing .py file
name on the command line.
With ver 23 it no longer works. If set up Windows file association, then the
script gets invoked, but command line arguments disappear.
Any idea what to do?

Thank you,
Alex

Jul 18 '05 #1
1 1329
"Alex Genkin" <ag*****@dimacs.rutgers.edu> wrote:
Hi Python experts!

With ver 22, I used to be able to invoke Python script by simply typing .py file
name on the command line.
With ver 23 it no longer works. If set up Windows file association, then the
script gets invoked, but command line arguments disappear.
Any idea what to do?


Did you remember to pass the parameters when you created the file
association?

C:\TMP>assoc .py
..py=Python.File

C:\TMP>ftype Python.File
Python.File=C:\Apps\Python23\python.exe "%1" %*

C:\TMP>
--
- Tim Roberts, ti**@probo.com
Providenza & Boekelheide, Inc.
Jul 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Ken Lindner | last post by:
I have a need to become familiar with SQL Server 2000 for work. Needless to say I am new to SQL Server any version, but not IT in general. My employer has provided me with the SQL Server 2000...
0
by: lucasimone | last post by:
Hi, i need some help to a pocket PC application. I need to implement a Form that contains a WebBrowser to display somes HTML forms. But when users invoke a submit, of that form, i need to capture...
1
by: Scott Davies | last post by:
Hi, I'm looking for some help on a small program that I'm trying to develop in VB.NET. I'm having trouble getting the code that I've written to work, can anyone shed some light as to where I'm...
0
by: Scott Davies | last post by:
Hi, I'm looking for some help on a small program that I'm trying to develop in VB.NET. The program I'm trying to develop needs to be able to do the following: - Select remote server -...
4
by: Rod Gill | last post by:
Hi, I have a form that when opened in the designer appears of the screen. The form selector can't be dragged (or resized) and if I scroll right and down to centralise it the form simply jumps...
3
by: Andrew V | last post by:
Greetings, I need to create a web service to be called by a few of our external affiliated web sites. How can I restrict web service invokation to only these affiliated web sites? Some of the...
2
by: sambo251 | last post by:
After running a few updates I get this very annoying "Windows Installer" error #1706 that will ne go away! It keeps saying that it cannot find the file "instantsharedevices.msi", that it is on...
3
by: =?Utf-8?B?THVib21pcg==?= | last post by:
Hi, I am wondering how I could clear the invokation list of delegates. I tried the following: //make a chain MyDel += SomeDel; // Clear the chain
1
by: woshicike | last post by:
Hi, I created a web service. When I place it under visual studio development server, the asynchronous invokation of web methd works fine. But when I publish the web service under IIS 5.1, the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.