Newsgroup: it.comp.os.win.win2000
Titolo: Stampa su file

Ciao a tutti, sono nuovo del ng e vengo subito al problema.
Quando imposto il driver di stampa su file, e correttamente la stampante mi
chiede il nome del file su cui verra' stampato il documento processato;
viene generato un file. Ma come posso stamparlo?
Uso Win2kPro.
Grazie, Doc.

Questa procedura era quella funzionante per win 9xx.
Non so se va anche sui posteri
Ciao
Oldrey
STAMPA SU FILE
Spiegazione breve sostitutiva della lettura del seguente articolo
Viene qui di seguito spiegato il modo piu' breve di svolgere la stampa su
file utilizzando Windows
Per poter svolgere la stampa su file creare un documento di testo chiamato
Printer.bat, il cui contenuto deve essere il seguente:
copy %1 lpt1 /b
dove per lpt1 si intende in questo esempio il numero della porta a cui e'
collegata la stampante.
Collocare il file Printer.bat nella cartella Windows.
Cliccare due volte sul documento *.prn
Apparira' una finestra di dialogo che richiedera' di associare il documento
ad un applicazione. Ricercare attraverso il comando Sfoglia il file
Printer.bat e associare il file *.prn ad esso.
----------
Spiegazione ufficiale
(in inglese)
How to Print .prn or .ps Files with Windows 95
Article ID: Q158081
Creation Date: 23-OCT-1996
Revision Date: 05-FEB-1997
The information in this article applies to:
筆icrosoft Windows 95
SUMMARY
This article describes how to print files containing raw printer data (.prn
or .ps files) in Windows 95. These files are created by printing from a
program to a file using a PCL or PostScript printer driver. .prn files are
typically created using a PCL printer driver; .ps files are typically
created using a PostScript printer driver.
MORE INFORMATION
To print from a command prompt, type the following line
   copy <path><filename.ext> LPT<x> /B
where <x> is the correct LPT port number (such as LPT1).
To enable Drag and Drop Printing for .prn or .ps files, follow these steps:
1.Using any text editor (such as Notepad), create a file called Printer.bat
and add the following line
copy %1 lpt<x> /b
where x is the correct LPT port number (such as LPT1).
2.Save the file in the Windows folder.
3.Start Windows Explorer, and then click Options on the View menu.
4.On the File Types tab, click New Type.
5.In the Description Of Type box, type "Printer" (without quotation marks).
6.In the Associated Extension box, type "PRN" or "PS" (without quotation
marks) as appropriate for your printer driver.
7.Click New.
8.In the Action box, type "print" (without quotation marks).
9.In the Application Used To Perform Action box, type:
c:\windows\printer.bat
10.Click OK.
11.Click Set Default.
12.Using Windows Explorer, locate the Printer.bat file in the Windows
folder. Use the right mouse button to click the file, and then click
Properties on the menu that appears.
13.Click the Program tab, and then click the Close On Exit check box to
select it. Click OK.
14.Using the right mouse button, drag the Printer.bat file to the desktop,
and then click Create Shortcut Here on the menu that appears.
NOTE: If you are printing to a network printer, you must redirect an LPT
port to your network printer. For information on how to capture a port for
your network printer, see the "To Capture a Printer Port" topic in Windows
95 Help.
After you follow the above steps, you can print .prn or .ps files using any
of the following methods:
疋rag a file onto a printer icon. 疋rag a file onto the Print.bat shortcut
on the desktop. 俵se the right mouse button to click a file, and then click
Print on the menu that appears. 疋ouble-click the file.
NOTE: For correct output, you must create the file using the same printer
type as the printer you plan to use to print the file. In other words, you
must send a file created with a PCL printer driver to a PCL printer; a file
created with a PostScript printer driver must be sent to a PostScript
printer.
------------------------------------------------------------------------
KBCategory: kbprint kbhowto
KBSubcategory: win95
Additional Reference Words: 95
THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS"
WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER
EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS
FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS
SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT,
INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN
IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR
LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE
FOREGOING LIMITATION MAY NOT APPLY.
(c)1997 Microsoft Corporation. All rights reserved. Legal Notices.

"Oldrado" <x...@xx.xx> ha scritto nel messaggio
news:F1zc8.990$5e4....@news2.tin.it...
:
: Questa procedura era quella funzionante per win 9xx.
: Non so se va anche sui posteri
:
No, non funziona, ma ti ringrazio perche' mi hai dato l'idea di ricercare la
soluzione da riga di comando. Ed alla fine ce l'ho fatta :)
Il comando e' questo:
print /d:lpt1 file.prn
assumendo che lp1 sia la periferica di stampa e file.prn il file da stampare
Doc.