Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing to file in SW

Status
Not open for further replies.

RBasniak

Mechanical
Sep 19, 2001
59
Hi everyone,

How can I send a .PRN file gerated by SW to a print? I have used winfile.exe to do that, but in Win2K there isn't any winfile.exe... why MS did take him from there?? :-( Is there another way? I have lots of .prn file and I want to send them to the printer in one time.

Thanks for all the help,
Rodrigo Basniak
Curitiba, PR
Brazil
 
Replies continue below

Recommended for you

You need not use winfile to print your prn doc's after you have created them. I used to do this all the time when I was racing, I had a laptop and would print all of my docs to a file, and afterwards would plug into the printer and print them all at the same time using a batch file.

Al you need to do is keep them in a common directory and select the right printer from the menu when you print them to a file. Then when you want to dump them out to the printer you can do this from the dos command line and simply use the copy command

SYNTAX:
copy *.prn <port name or IP address>

copy *.prn lpt1
or
copy *.prn 158.26.156.08

hope that helps
Regards,
Jon
jgbena@yahoo.com
 
1) WINFILE still exists in winnt. You have to run it from Start->Run->Winfile

2)
I suggest you to write a batch file eg. LaserPrint.bat and place it on your desktop.
The batch file should contain the print command as follows
c:\winnt\system32\print.exe %1 /d:\\Comptrnam\Printsharename

or copy %i LPT2:

From Windows Explorer just drag your .prn file and drop onto the icon of batch file you just created.
Take care to see that in your printer properties you have selected the 'Spool the jobs before printing' and not selected 'Print Directly to printer.

This method works for any network printer.
Additional care you have to make is to select correct printer type (laser, poscript, etc) when creating .prn files.

You can test your batch file by first drag and dropping from win-explorer to the icon of batch file of a simple text file such as autoexec.bat.

3) You can print to a subdirectory and issue the bath file name with *.* as mentioned by APPENG
 
I wanna thank Jon and Krishna by the help :)

I just want to understando better your example Krishna... Your ideia works well for txt file for instance, but when I print a PRN file generated by SW te printer always prints a blank sheet together... but the real problem is that I can't print more than one file at same type... is it correct or am I missing anything? By batch file is the following:

c:\winnt\system32\print.exe %1 /d:\\projetos1\hplaserj

What I want to do is select around 30 files from an folder and drag them to the batch file... Is it possible?

When I select lots of file and drag onto the batch file the printer just prints the 1st file...

I agree with you that winfile still exhists in NT :) But I'm using Windows 2000, and there, there isn't any winfile :( I just don't understand what does Microsoft think... LOL

Rodrigo Basniak
Curitiba, PR
Brazil
 
Wouldn't the Batch Print DL from SW website be the program your looking for? I know this prints regular SW files. Also when you DL the file the code is added and you can change it to fit your needs. This may come in handy for you Rodrigo.

I hope this helps, Scott Baugh, CSWP [spin]
credence69@REMOVEhotmail.com
 

I tried &quot;copy A:\test.prn 158.26.156.08&quot; and I just got a copy of the PRN file saved as that ip number instead of printing to the network.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor