Page 1 of 1

bat file output to pdf

Posted: 11 Mar 2011 02:34
by dukdpk
Hi All

how to get bat file out put to pdf format. Are there any possibility to get bat file out put to pdf one by modifying following code.

@echo off
sqlcmd -S MY-PC1\SQLExpress -d TEST_2011 -i E:\r1.sql -o E:\r1.csv -s","
echo report is generated
pause



Thank you

Re: bat file output to pdf

Posted: 11 Mar 2011 15:15
by aGerman
SQLCMD has no option to create a pdf file. Create a txt file and use a third party tool, like Text to PDF for converting.

Code: Select all

call "%ProgramFiles%\AdultPDF\Text To PDF\TxtToPDF.exe" "%~dp0Example.txt" "%~dp0Example.pdf"

Regards
aGerman

Re: bat file output to pdf

Posted: 27 May 2011 23:51
by nellyee
How to save a pdf to the desktop? I have already converted my word document to a pdf format using Adobe. So now, how do I save it to my desktop? What's next? Please help.

Re: bat file output to pdf

Posted: 28 May 2011 09:47
by nitt
nellyee wrote:How to save a pdf to the desktop? I have already converted my word document to a pdf format using Adobe. So now, how do I save it to my desktop? What's next? Please help.


Can't you just like, cut/paste the file onto your desktop?

And here is a good converter, but it's online and not console based (if that's what you're looking for):

http://www.texttopdfconverter.com/