I am not trying to use a setup.py, i just want to use the basic script.

the website says as an example:

cxfreeze hello.py --target-dir dist

thanks in advance!

I tried this but it did not seem to work:
(The Command Line is in the folder with the Shooter.py)

C:/Documents and Settings/Python31/Scripts/cxfreeze Shooter.py --target-dir dist

cxFreeze is not an executable, but a package called cx_Freeze you need to import to your setup code ...

"""
con_setup2.exe

Using cx_freeze with Python32 to package a console
program to an executable file (.exe in Windows OS).

Might want to put a console-wait-line in at the end of your program.

Put this setup program and your console program file into the same
directory.  Change the filename in this setup program and also edit
name, version and description in setup() if you so desire.

A directory 'build' is created with a subdirectory 'exe.win32-3.1'
containing all the files needed for distribution including the
.exe file named after the console program file.

The total distribution has a size of about 4.2 Mb.
this includes the Python32.dll interpreter
and some small pyds and a zip file

cx_Freeze can also be installed and used with Unix systems.

I used:
http://cx-freeze.sourceforge.net/
cx_Freeze-4.2.3.win32-py3.2.msi
"""

from cx_Freeze import setup, Executable
import sys

sys.argv.append("build")  # replaces commandline arg 'build'

# change the filename to your program file
filename = "HelloWorld.py"

setup(
    name = "Hello World",
    version = "1.0",
    description = "console cx_Freeze script",
    executables = [Executable(filename)])
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.