473,387 Members | 1,766 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,387 software developers and data experts.

Re: win-shortcuts, file associates and command-line parameters ?

Gabriel Genellina wrote:
En Thu, 10 Apr 2008 16:03:28 -0300, Stef Mientki <st**********@gmail.com>
escribió:

>under windows I tried to make a shortcut to a py -file, to run a program.
So making a shortcut like this works perfect:
D:\PyLab_Works.py

But the problem is that I need to give some commandline parameters to
the py-file,
and

D:\PyLab_Works.py btc_test
But the parameter doesn't seem to arrive in the python program

Check the associated command for .py files; see this message
http://groups.google.com/group/comp....6ba14ae4fa57e3

Didn't work for me winXP-SP2, even after a restart :-(
But anyway thanks for the effort.

cheers,
Stef Mientki
Jun 27 '08 #1
1 957
On Apr 11, 4:40 pm, Stef Mientki <stef.mien...@gmail.comwrote:
Gabriel Genellina wrote:
En Thu, 10 Apr 2008 16:03:28 -0300, Stef Mientki <stef.mien...@gmail.com>
escribió:
under windows I tried to make a shortcut to a py -file, to run a program.
So making a shortcut like this works perfect:
D:\PyLab_Works.py
But the problem is that I need to give some commandline parameters to
the py-file,
and
D:\PyLab_Works.py btc_test
But the parameter doesn't seem to arrive in the python program
Check the associated command for .py files; see this message
http://groups.google.com/group/comp....6ba14ae4fa57e3

Didn't work for me winXP-SP2, even after a restart :-(
But anyway thanks for the effort.

cheers,
Stef Mientki
You could try uninstalling Python and reinstalling it. Or you could do
a registry hack.

I did a search for what Gabriel was talking about and it looks like
the key you want is found here:

HKEY_LOCAL_MACHINE\software\classes\applications\p ythonw.exe\shell
\Edit with IDLE\command

Mine has the following for its value:

"L:\Python24\pythonw.exe" "L:\Python24\Lib\idlelib\idle.pyw" -n -e
"%1" %*

Make sure that the type is REG_SZ.

As always, unless you know what you're doing, back up the registry (or
create a restore point) before messing with it. However, I think the
only thing that this hack could possibly do is mess up your Python
install more if it was screwed up.

Mike
Jun 27 '08 #2

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

Similar topics

4
by: Richard Bell | last post by:
I would like to open a 'child' window win and check it's ready state. Unfortunately, when I try to do so, I discover that win.document does not appear accessable from the parent window, see below....
3
by: Stefan Richter | last post by:
Is it possible to install IIS on WIN XP Home? If not, which other server could I use instead to be able to develop ASP.Net stuff with Visual Studio.Net??? I tried to install IIS, and on the...
1
by: Hugo | last post by:
I have a dual boot machine, runs Win XP pro and Win XP Pro 64, XP boots from C and XP 64 boots from D. They both have VS 2005 Beta 2 installed. I have a webapp developed in Win XP (32) which...
7
by: Rabbit | last post by:
Dear all, Does anyone know how to resolve following setup problem, I developed my application(using .net 2.0) which will connect Access database on my Win XP, everything works fine, but when I...
1
by: sp | last post by:
Is it possible to instal dot net 2.0 SDK on Win 98 or Win ME? I tried and I received A required resource cannot be found (at the window bar there ara unusual signs). I installed .net 2.0...
2
Bhanu Murthy
by: Bhanu Murthy | last post by:
Dear Members, How do I get PWS working with Win Me version. Most of the reports says, PWS wont work under Win Me. But, I am using Win Me for the past few years and I am finding comfortable with...
0
by: * Its my Pleasure * | last post by:
Win Win Win Win...... Win cash Rs.10,000. SMS BLUFF to 57333 (Only For Indian) Free Registration! - Register here Free:- http://offr.biz/HLDDT337130BVGMJPF (....Free Offer is Valid Only...
91
by: Eddie | last post by:
Hi I am using lcc-win on Windows 98. I'm writing a simple c console app, and I need to set the background color to blue. Here's the code I've got at the moment: _asm ( "movb $2, %ah\n" "movb...
6
by: roman.muntyanu | last post by:
Hi All, I have a program that can be started as windows service or as an windows app. I need to avoid starting this program as an application if it is already started as a win service. In...
42
by: jacob navia | last post by:
Within the context of the lcc-win experimental compiler a complete str_ing library is available that uses operator overloading and overloaded functions to present a new type of string library in...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...

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.