locked
printing command RRS feed

  • Question

  • Hello all

    someone, know the form send to print from command line

    Regards


    Hugo Monge

    Tuesday, June 16, 2015 2:59 PM

Answers

  • You cannot print PDF,WORD,CSV files from command prompt because the formatting would not be included.

    BUT if you wanted to print myspreadssheet.csv you would type C:\directory where myspreadseet.csv is\myspreadsheet.csv>prn


    Wanikiya and Dyami--Team Zigzag

    Tuesday, June 16, 2015 4:23 PM
  • Not possible.  Files use various formats that only the creating program can properly print.

    Wednesday, June 17, 2015 2:02 PM

All replies

  • it is "PRN" so for example if you wanted to print a directory list you would type dir *.*>prn

    Wanikiya and Dyami--Team Zigzag

    Tuesday, June 16, 2015 3:10 PM
  • You need to be more specific re. what you want to print.  For a simple text file this can be done with notepad and the /p parameter.  For other types of content there is no simple generic answer.

    >notepad /p MyFile.txt

    Tuesday, June 16, 2015 3:13 PM
  • Thank for information

    but always need put the executable of the type of file, Do you know other form with only put the name of file.


    Hugo Monge

    Tuesday, June 16, 2015 4:01 PM
  • You need to be much more specific and include an example of what you are trying to do

    Wanikiya and Dyami--Team Zigzag

    Tuesday, June 16, 2015 4:05 PM
  • Thank

    I need send to print anywhere file in a specific location, from the command line 

    the file may be PDF, WORD, TXT, CSV


    Hugo Monge

    Tuesday, June 16, 2015 4:14 PM
  • You cannot print PDF,WORD,CSV files from command prompt because the formatting would not be included.

    BUT if you wanted to print myspreadssheet.csv you would type C:\directory where myspreadseet.csv is\myspreadsheet.csv>prn


    Wanikiya and Dyami--Team Zigzag

    Tuesday, June 16, 2015 4:23 PM
  • Hi Hugo Monge,

    Here is a link for reference of all the print command line.
    Print Command Reference
    https://technet.microsoft.com/en-us/library/cc771846.aspx

    Best regards


    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.

    Wednesday, June 17, 2015 8:59 AM
  • Not possible.  Files use various formats that only the creating program can properly print.

    Wednesday, June 17, 2015 2:02 PM