This project provides a template to pack HTA applications into a single executable.
- Microsoft .NET SDK to build executables.
| Exe | Description | Releases |
|---|---|---|
![]() |
Download the latest version | Download |
The app folder exists for 5 seconds before it gets deleted.
To access a file that is packed inside the app you need to read it on thewindow.onloadevent.
var fs = new ActiveXObject("Scripting.FileSystemObject");var tmpFolder = fs.GetParentFolderName(window.location.pathname);var exeFolder = window.location.href.split("?path=")[1];var fileContent = "";
var filePath = tmpFolder + "\\file_packed_inside_app.json";
if (fs.FileExists(filePath)) {
var file = fs.OpenTextFile(filePath, 1);
fileContent = JSON.parse(file.ReadAll());
file.Close();
}var data = { message: "Hello World!" }
var file = fs.CreateTextFile(exeFolder + "\\config.json", true);
file.Write(JSON.stringify(data, null, 4));
file.Close();var shell = new ActiveXObject("WScript.Shell");shell.Run("cmd.exe /C start tree", 1, true);var picker = new ActiveXObject("Shell.Application").BrowseForFolder(0, "Select a folder", 0);
if (picker){
var folder = picker.Items().Item().Path;
alert("Selected Folder: " + folder)
}⭐ If you find this useful!


