How to pack a folder with the index.html file and files belonging to it (scripts, pictures, other pages)?
  • Try through visual-basic. - user1757

4 answers 4

  1. You can pack in exe, but you have to look for an engine that can display embedded HTML. In any case, it is bad form. The viewer for various types of hypertext documents is already on almost any computer, so you should not create entities. And I would be paranoid in general - aren't they trying to give me a trojan?

  2. As correctly answered above there is a file format CHM. This is essentially compiled HTML. Those. archive, which may be several html-pages, images, files and other types of resources. And all in one file opened by a special viewer. To create a CHM file there is a special class of programs - CHM-compilers. Their range starts from the native M $ HTML Help Workshop, and ends with more convenient third-party programs, for example, htm2chm.

  3. There is also an MHT file. It is also essentially archived HTML and related resources, the only feature is compression using MIME. Now any normal browser can both open such files and save to this format.

  • Yes, I would be happy to use chm, only all this useless haze in the program window from Microsoft makes me mad. It seems to me that what I want to stuff into chm will not look. - Valera
  • In vain think so. - Sergey
  • Who will explain to me why today the formatting of the text flies with a bang? - gecube
  • "It seems to me that what I want to cram into chm will not look." -need to try and see what happens. If it is in CHM, then it is desirable to study the result in several viewers (in particular, there is their zoo under linux). - gecube
Maybe it will be enough to pack it in chm? In Windows will open as an application. With the ability to search all the files that you have packed there
  • "With the ability to search all the files that you have packed there" - oh, not a fact, oh, not a fact ... - gecube

It all depends on your task. If you know HTML / JS and thus want to "write" an application under Windows - this, sorry, is the worst way to do it. You will not be able to use either the advantages of the Windows API or the advantages of the browser (I mean, you will most likely be able to display only static content and whatever tool you need to convert from HTML to EXE, your HTML will still be displayed via the ActiveX control of Internet Explorer and not the fact that it will be IE9 (so forget about CSS3, HTML5.)

If you want to make a set of static files for an eLearning-application, then Help & Manual ( http://www.ec-software.com/products_hm_overview.html ) can do it and so there is enough such software: http://www.google.com / search? q = html + 2 + exe

    Zip to pack the directory and add it to the resources of the copy, then extract if necessary through LZ-api: File Compression and Decompression

    • And how to display (display) HTML? - gecube
    • Unpack, of course, in a temporary directory. Yes, and emulate FS is not difficult. So for example from the memory module loaded. - Indy