Run htmltools.exe from Windows Task Scheduler or Crontab

Hello

I'm created a .bat :

@echo off
cd /d E:\HTMLTOOLS\
htmltools.exe -webkit "http://www.ourwebsite.com" E:\docv8\Sybelles.pdf
exit

But when I create a task in Windows server 2008, it doesn't work. Could you help me to create my task with the correct arguments, tanks

Customer
--------------------------------------------

Your .bat file seems no problem.

Just for checking, can you run following command line in CMD window to convert a web page to PDF file correctly?

htmltools.exe -webkit "https://www.verypdf.com" E:\out.pdf

VeryPDF
--------------------------------------------
Hello,

The command line works properly.

I'm just wondering if you know how to program a task in WS2008 to execute the .bat each day.

Thanks
Customer
--------------------------------------------
You can write following command line into a .bat file, e.g., D:\test.bat file,

D:\htmltools.exe -webkit "https://www.verypdf.com" E:\out.pdf

then you can run following command line to run this D:\test.bat file every day, using "at" command in Windows,

at 01:00 /every:Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday D:\test.bat

VeryPDF

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *


Verify Code   If you cannot see the CheckCode image,please refresh the page again!