| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Batch files (.bat) and the Windows Command Prompt have their roots deeply embedded in computing history, stretching back to the early days of personal computing. The lineage traces back through the MS-DOS era of the 1980s, when Microsoft created MS-DOS (Microsoft Disk Operating System) as a command-line interface for early IBM PCs and compatibles.
The .bat file extension stands for "batch," referring to the ability to batch-process multiple commands that would otherwise need to be entered manually. These batch files contain sequences of commands that are executed in order, providing a means to automate repetitive tasks and complex procedures.
The design of MS-DOS was heavily influenced by earlier operating systems, most notably Digital Research's CP/M (Control Program/Monitor), which was one of the first operating systems for early personal computers in the 1970s. CP/M established many conventions that would later appear in MS-DOS, including the command-line interface, file system structure, and the concept of executable command files. Even the architecture of batch files - with their line-by-line command execution - can be traced back to these early systems.
The Windows Command Prompt (cmd.exe) that we know today evolved from these DOS roots, maintaining backward compatibility with many of the same commands and scripting capabilities. Commands like dir, cd, echo, and the general structure of batch files can be traced back through this lineage to CP/M. This heritage makes understanding DOS-era scripting essential for working with legacy build systems and batch scripts, particularly in development environments that have evolved from older systems.
The Batch Script Shell (BSS) is a C implementation of a shell that interprets basic batch commands used in Symbian build scripts, with support for Windows-style paths, environment variables, and basic command execution.
The project supports multiple build systems. Choose the one that best fits your environment:
makeTo clean build artifacts:
make cleanWe've provided a convenient build script that wraps all build options:
# Build with default make
./build.sh build
# Build with CMake
./build.sh cmake
# Build with Autotools
./build.sh autotools
# Clean build artifacts
./build.sh clean
# Clean all including autotools generated files
./build.sh distclean
# Install the executable
./build.sh install
# Show help
./build.sh helpmake cmake-buildOr manually:
mkdir build
cd build
cmake ..
makemake autotools-buildAfter the build completes, you'll need to restore the main Makefile:
make restore-main-makefileOr manually:
autoreconf -fiv
./configure
makeTo clean autotools-generated files:
make autotools-distcleanThe shell can execute external commands using the system's PATH.
./bss./bss <batch-file.bat>This shell is designed to work with Symbian build scripts and provides compatibility with common batch commands. It includes features like:
BSS focuses only on the subset of batch functionality actually used by the Symbian build system, rather than implementing full batch compatibility. This keeps the implementation minimal and maintainable while providing the necessary functionality for the build process.
The implementation includes:
| Back | FazBrowse Home | New Git URL |