Run executable files on the server (Windows only) using hfs.
- Adds run buttons next to executable files in HFS file listings
- Executes files directly on the server (not the client's computer)
- Supports various file types:
.exe,.msi,.bat,.cmd,.ps1,.vbs, and more - Configurable file extensions
- Download the plugin's
distfolder - Place it in your HFS
pluginsdirectory - Refresh HFS admin page
In the HFS admin panel under Plugins > hfs-run:
- Show run button: Enable/disable the run button display
- File extensions: Customize which file extensions show the run button (separated by
|) - Users/groups who can see run buttons: Restrict run button visibility to specific users or groups (leave empty to show to all users)
Default extensions: exe|msi|bat|ps1|vbs
- .exe - Executable files (runs directly)
- .msi - Windows installer packages (uses msiexec)
- .bat/.cmd - Batch files (uses cmd.exe)
- .ps1 - PowerShell scripts (uses PowerShell with execution policy bypass)
- .vbs - VBScript files (uses wscript.exe through cmd.exe)
- Plus any other executable file type configured by the user
- HFS v3 with API version 9.6 or higher
- Windows operating system for the server
- Appropriate permissions to execute files on the server
- Files are executed with the same permissions as the HFS process
- Consider running HFS with limited privileges
- Only enable for trusted users or in controlled environments
Note: Run HFS as Admin to allow .ps1 file execution, Windows does not allow execution of ps1 files without Admin permits by default.
To contribute to this plugin:
- Fork the repository
- Make your changes
- Submit a pull request
- Added real-time backend permission verification on every execution
- Fixed CLI app interference with HFS by using proper process detachment
- Added user/group permissions - admin can now restrict run button visibility to specific users or groups
- Improved security by allowing fine-grained access control
- Fixed file path resolution issue - now properly maps VFS files to real file system paths
- Initial release
- Basic file execution functionality
- Configurable file extensions
