Print text file to specific windows print driver

Is there a way to print a basic ascii text file to a specific windows printer using a Plugin or Script within a workflow?

That would be Print using a windows driver plugin.

Although I never tried it to simply print a text file, it should behave as a regular line printer.

Thanks for the reply, unfortunately it gives a “unsupported file” error as it will only print pdf or ps files as far as I can tell.

I have created a workaround by calling an external program notepad++ and using the -quickprint switch

You have to create a new printer that uses the Generic / Text Only driver. Then, you can print to that device and it will simply send the text without attempting to convert it to any other format.