Re: Easiest way to print from XP/DOS.




Did you run from a file or type in from keyboard?

When the client runs the utility program the
output file is built but nothing prints and no
messages appear. When I typed from keyboard on an
xp pro at c:\, I got the message.

Is it possible that virus detector or some
self.defense software is interacting?


On Friday 29 December 2006 17:58, Larry Bates
wrote:
jim-on-linux wrote:
This is the situation I'm in.

I've built a single file utility using
py2exe. I zip the dist directory and send it
to the client.

For clients that use win95, win98 machines,
They unpack the zip file and run the exe.

The utility creates a text file that is sent
to the printer with the statement below.
os.system('type ' +FileName+ ' >prn'), and
the file prints.

But, from an xp machine if I try to print
using the same statement, I get a question
on the dos screen which reads something like
this; Which program authorized this
operation?

Since I don't have an xp machine, the
statement above may not be exact, but you get
the idea.

The question I have is, first is there any
way to work around the question asked by the
xp machine using python.

If not, I may have to register the package in
xp, if registering the utility the only way,
which package is the simplest to use.
Also, if the utility is registered in xp,
will the same statement send the file to the
printer as it does in win98.

jim-on-linux

I don't get any such message on my XP Pro
Service Pack 2 system here using your method.

-Larry
.



Relevant Pages

  • Re: Keyboard Madness in TS Environment
    ... all users on that client, I would stop troubleshooting the issue ... out multimedia keyboard to a USB keyboard. ... session from the terminal services manager. ... once I ended my connection, ...
    (microsoft.public.windows.terminal_services)
  • Re: Sending private data to a USB HID Keyboard
    ... Dave August wrote: ... I have a client that's building a USB HID Keyboard. ... I haven't gotten spec from the client yet so I have no idea if they have a private endpoint they are going to use or what. ... FWIW They have a PS/2 version of this thing working so I'll bet they are just planning on using some off the shelf PS/2 to USB thingie so that kinda implies the private messages are just going to the same place the standard LED messages go. ...
    (microsoft.public.development.device.drivers)
  • Re: Tablets? - OT
    ... credit card reader and a memory card (now we ... I would have built the whole lot into an airline bar cart ... near the client who is adept at repairing them. ... What really annoys me is that Win CE machines tend to be much better ...
    (microsoft.public.vb.general.discussion)
  • Re: PRB - serial gateway device implementation
    ... since you intend to acquire the data whether a client is ... by making a stream driver which is loaded by the device manager on startup ... Will only the last data from each serial port be ... > I built a BSP for the device by cloning the CEPC BSP. ...
    (microsoft.public.windowsce.app.development)
  • Linux 2.6.20-rc2
    ... The client is AMD64 running Debian ... I left the machine to run the diff and when I came back, the USB keyboard ... The dmesg from the client machine is attached. ...
    (Linux-Kernel)