>>>>Anyone know how to print the file (not doc file) programmatically or
>>>>call API ? I try to use ShellExecute "print" before, but the file must be
>>>>document file.The file i want to print is .log file.
>>>>Can i call windows print manager ? or call notepad to print ?
>>>
>>>Easiest is to just call NotePad with the /PRINT command line parameter.
I would have thought
SET CONSOLE OFF
>>LIST FILES LIKE c:\temp\*.log TO PRINTER
>>SET CONSOLE ON
was easier. Just my opinion.
>
>LIST FILES only gives the directory; it doesn't print the files.
Found it:
TYPE FileName1
[AUTO]
[WRAP]
[TO PRINTER [PROMPT] | TO FILE FileName2]
[NUMBER]
censored.