Skip to content

8gudbits/VBS2CPP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VBS to C++ Converter

A command-line tool that converts VBS files to C++ executables with embedded script execution.

Features

  • Convert VBS scripts to standalone C++ executables
  • Command line argument passing to VBS scripts
  • Optional admin privileges requirement
  • Choice of wscript (UI) or cscript (console) execution

Usage

Basic Conversion

vbs2cpp.exe -f script.vbs -o output.cpp
g++ -o script.exe output.cpp -lole32 -lshell32 -mwindows

With Admin Privileges

vbs2cpp.exe -f script.vbs -o output.cpp -ra
g++ -o script.exe output.cpp -lole32 -lshell32 -mwindows

Console Script (cscript)

vbs2cpp.exe -f script.vbs -o output.cpp -cs
g++ -o script.exe output.cpp -lole32 -lshell32 -mwindows

Command Line Options

  • -f, --file <vbsfile> - Input VBS file to convert
  • -o, --outfile <cppfile> - Output C++ file
  • -ws - Use wscript.exe (default, shows UI)
  • -cs - Use cscript.exe (console output)
  • -ra - Require administrator privileges
  • -h, --help - Show help message

Build

make

Test

make test          # Basic test
make test-admin    # Test with admin flag

Install

make install

Requires administrator rights to copy to System32 directory. or, you can download the exe file by clicking here.

Requirements

  • MinGW or compatible C++ compiler
  • Windows OS (VBS is Windows-specific)

About

Convert VBS file to EXE by using C++ as a wrapper.

Topics

Resources

License

Stars

Watchers

Forks

Contributors