How to run the program with command line?



The program can accept command line parameters, this feature can be used to create "Scheduled Tasks", a convenient shortcut or a ".bat" file etc, to convert automatically. For your convenience, you can process multiple projects in one command line.


Command line switch reference:

Usage: [Program file path] [Argument]:[Value]

If an argument has default value, the program will use it's default value if you not specify new value in the command line.

For example, if the program is "C:\Program Files\Easy HTML to Image Converter\HTMLToImage.exe", and you save the program settings as project file "C:\MyProject.hti", then you can use following command line to automatically convert:

"C:\Program Files\Easy HTML to Image Converter\HTMLToImage.exe" /project:"C:\MyProject.hti"
 
 
Argument Value Description
/project The value is a project file path.
Example: "C:\MyProject.hti"
Open the project file then automatically convert, exit after finished.
If use this argument, all other arguments will be ignored.
/url Example1: "http://www.askysoft.com"
Example2: "http://www.askysoft.com","http://www.yahoo.com"
URL of the web page which you want to take screenshot of, or several URLs separate with ",". Local file path can be inputted together also.
/file Example1: "C:\index.htm"
Example2: "C:\index.htm","C:\default.htm"
Web page file path which you want to convert to image, or several files path separate with ",". URL can be inputted together also.
/list Example1: "C:\List.txt"
Example2: "C:\List.lst"
A text file including list of URLs or local file paths, one URL or file path per line.
/output Example: "C:\Output" A path that the program will output converted images into.
/format Example: "jpg" Image format that the web pages will be converted to. Value can be: "bmp", "jpg", "gif", "tiff", "png". Default value: "jpg".
/quality Example: 90 Image quality, a large value will get good quality image but the file size will be large also. Default value: "100".
/name Example: "time" Name the converted images based on current time. Value can be: "url", "time". Default value: "url".
/nameprefix Example: "htmlimage_" Add prefix to the name of the converted image files. If this is not in the command line, the program will not add prefix to image name.
/nameexisted Example: "overwrite" Change name or overwrite if the image file already existed. Value can be: "add number", "overwrite". Default value: "add number".
/thumbwidth Example: 100 Width of the thumbnail copy of converted image. If this is not in the command line, the program will not output thumbnail copy.
/thumbheight Example: 100 Height of the thumbnail copy of converted image. If this is not in the command line, the program will not output thumbnail copy.
/timeout Example: 60 Timeout seconds for loading web page to convert. Default value: 60.
/delay Example: 0 Delay seconds after web page is loaded for converting. This is useful when the web page include video etc. Default value: 0.
-noscript No value Disable Script when loading web page for converting.
-nojava No value Disable Java when loading web page for converting.
-noactivex No value Disable ActiveX when loading web page for converting.




See Also

Schedule Dialog