A command-line tool that converts VBS files to C++ executables with embedded script execution.
- 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
vbs2cpp.exe -f script.vbs -o output.cpp
g++ -o script.exe output.cpp -lole32 -lshell32 -mwindowsvbs2cpp.exe -f script.vbs -o output.cpp -ra
g++ -o script.exe output.cpp -lole32 -lshell32 -mwindowsvbs2cpp.exe -f script.vbs -o output.cpp -cs
g++ -o script.exe output.cpp -lole32 -lshell32 -mwindows-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
makemake test # Basic test
make test-admin # Test with admin flagmake installRequires administrator rights to copy to System32 directory. or, you can download the exe file by clicking here.
- MinGW or compatible C++ compiler
- Windows OS (VBS is Windows-specific)