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

dos box appears when clicking .pyc

Hi,
For a few months now, I have been used .pyc script under XP without
getting the "DOS" box.

I just re-installed the scripts on another XP box and am now getting the
DOS box !

Something to do with the registry ?

Regards,

Philippe

--
***************************
Philippe C. Martin
SnakeCard LLC
www.snakecard.com
***************************

Jul 18 '05 #1
3 1287
Change the association for .pyc files to pythonw.exe
from python.exe.

Larry Bates
Philippe C. Martin wrote:
Hi,
For a few months now, I have been used .pyc script under XP without
getting the "DOS" box.

I just re-installed the scripts on another XP box and am now getting the
DOS box !

Something to do with the registry ?

Regards,

Philippe


Jul 18 '05 #2
Larry Bates wrote:
Change the association for .pyc files to pythonw.exe
from python.exe.


This might help further (taken from a properly configured
machine):

c:\>assoc .pyc
..pyc=Python.CompiledFile

c:\>ftype Python.CompiledFile
Python.CompiledFile="C:\a\python24\python.exe" "%1" %*

c:\>assoc .pyw
..pyw=Python.NoConFile

c:\>ftype Python.NoConFile
Python.NoConFile="C:\a\python24\pythonw.exe" "%1" %*
Note "pythonw" for ".pyw" files, and just "python" for
".pyc" files. If you want .pyc files NOT to open up
the DOS box, you need to change the association to
what the .pyw files use, which is not the default and
possibly will not always do what you want.

-Peter
Jul 18 '05 #3
"Philippe C. Martin" <ph*************@sbcglobal.net> wrote:

For a few months now, I have been used .pyc script under XP without
getting the "DOS" box.


You don't usually click on .pyc scripts. You click on .py and .pyw
scripts. .pyw files will not bring up a DOS box.

If you really want .pyc files to run without a DOS box, bring up a command
shell and type

assoc .pyc=Python.NoConFile

(Actually, you should type "assoc .pyw" to make sure that is its file
type.)
--
- Tim Roberts, ti**@probo.com
Providenza & Boekelheide, Inc.
Jul 18 '05 #4

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

Similar topics

4
by: KS | last post by:
Is it possible to write a javascript that makes a popup window when someone click on buttons/href on my page and close itself when the new page is about to get loaded? I want to prevent the user...
5
by: Edward Mitchell | last post by:
Is there a way that I can repair MS Internet Explorer? I seem to have broken it somewhere. I have been developing a .NET app. Three days ago I saw a message box in a web site that I visit saying...
8
by: Andrew Phillipo | last post by:
I have a layout which works perfectly. It is three column, the central column is width:auto; with margins and the columns are absolutely positioned at top:0px; left:0px; and top:0px;right:0px; ...
2
by: Ronald S. Cook | last post by:
In my Windows app, users are clicking on the "X" in the top left corner instead of clicking File.. Exit. I have code that needs to run prior to the app shutting down. How can I capture the event...
1
by: Catriona | last post by:
I am developing an Access application where users insert bill records for an electricity account by clicking on a new button. The required workflow is 1) New button clicked 2) New record appears...
6
by: hemant.singh | last post by:
Hi all, I am trying to get a way by which I'll know exactly when user goes out of my site by clicking on close button in browser, So that w/e user click close button in browser, I can send a...
4
by: L. Scott M. | last post by:
I am invoking a file download using the following code: Response.Clear(); Response.AddHeader("Content-Disposition", "attachment; filename=" + downloadFile.Name);...
6
by: lucyh3h | last post by:
Hi, In one of my pages, I use javascript (AJAX) to populate one mulitple select field based on user's click event on another control. I noticed that when I navigate back to this page by clicking...
3
by: sankarpulivarthi | last post by:
Hi i have a checkbox in first datagridview . when it is checked it should get that row values.and iam trying to display that checked row values in a second datagridview after clicking a button....
3
by: COHENMARVIN | last post by:
I have a sqldatasource control that uses 3 parameters. I have a gridview that depends on the sqldatasource control The 3 parameters are session variables. So in my code, I set the values of...
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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.