Well, text files should be easy.
In any case you are going to need to explore the PrintDocument Class in System.Drawing.Printing[
^].
But, do you mean ... if you have a folder with one PDF file, one Excel File, and one MS Word file ... you want each of those documents printed exactly as if they were being printed from Acrobat, Excel, and Word ?
If that's what you mean, I don't think you will be able to do this for a broad range of applications. To do this you will have to "automate" those applications: launch them, send them the appropriate "messages" to tell them to print, and how to set-up the printer configuration.
Or, you will have to go with a "central hub" solution such as using 'GhostScript' the open-source PostScript converter.
If you search in CodeProject, you will certainly find articles that will help you print certain formats from .NET, for example:[
^].
Another alternative may be 3rd. party components from companies, like Aspose, that specialize in these types of solutions.
And, who knows, maybe someone will respond here and show how to use Windows Script Host or something else to take this on.