bat file output to pdf

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
dukdpk
Posts: 13
Joined: 10 Mar 2011 03:27

bat file output to pdf

#1 Post by dukdpk » 11 Mar 2011 02:34

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

aGerman
Expert
Posts: 4678
Joined: 22 Jan 2010 18:01
Location: Germany

Re: bat file output to pdf

#2 Post by aGerman » 11 Mar 2011 15:15

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

nellyee
Posts: 1
Joined: 26 May 2011 00:57

Re: bat file output to pdf

#3 Post by nellyee » 27 May 2011 23:51

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.

nitt
Posts: 218
Joined: 22 Apr 2011 02:43

Re: bat file output to pdf

#4 Post by nitt » 28 May 2011 09:47

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/

Post Reply