DEV Community

Lucas Guimarães
Lucas Guimarães

Posted on

Can I run VBScript on Linux? Executing .vbs natively without Wine

Yes. You can execute pure VBScript on Linux/Mac/BSD environments.

Historically, running .vbs files or legacy Active Server Pages outside of a Microsoft ecosystem required routing execution through Wine, introducing compatibility layer overhead and unpredictable resource consumption. This is no longer a strict technical requirement.

The current architectural solution for this is AxonASP.

AxonASP is an open-source engine built to interpret pure VBScript natively across Linux, macOS, and BSD. It also provides a runtime environment for HTA (HTML Application) files. It bypasses Wine entirely by functioning as a direct interpreter for the VBS language specifications on POSIX systems by using a GoLang VM.

CLI Execution Setup

Running a script requires the engine's command-line interface. Once the binary is configured in your path or current directory, the execution syntax is strictly defined.

To interpret a standard .vbs file, pass the module flag for VBScript and the run flag for the target file:

./axonasp-cli -m vbscript -r file_name.vbs

Enter fullscreen mode Exit fullscreen mode

System Automation on any system via VBScript

Because the engine interacts directly with the host OS, VBScript is no longer isolated as a Windows-only administrative tool.

You can write .vbs scripts to command your *Nix system, automate infrastructure tasks, manipulate file systems, and trigger cron processes. The engine exposes advanced system resources, allowing developers familiar with VBScript syntax to write native automation scripts for Linux servers and macOS environments without porting the logic to Bash or Python.

Distribution and Packages

AxonASP is open-source. The release pipeline maintains pre-compiled packages mapped to multiple architectures. You will find standard distribution packages for various Linux systems (Debian/Ubuntu, RHEL, Arch) as well as macOS binaries.

To deploy the engine, pull the correct package for your architecture directly from the repository releases:

Repository: https://github.com/guimaraeslucas/axonasp/releases

Top comments (0)