문제

Is it possible to redirect the output of a batch file to a pdf file? I have a batch file that runs "ss diff" (source safe command to get the differences) on all the files in a project. Right now, it outputs the result to a text file. I was wondering if we can redirect the output to a text file. If not, is there a way to convert a text file to a pdf file automatically in a windows batch?

Thanks, Sridhar.

도움이 되었습니까?

해결책

I found this one which I can use in the batch script

http://www.verypdf.com/txt2pdf/index.htm#dl

다른 팁

You could run your batch file in PowerShell and pipe to Out-Printer, assuming you have a PDF "printer" installed.

PS C:\work> .\test.bat | out-printer "CutePDF Writer"
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top