https://github.com/kkmzero/mkfile
Batch script for creating new files from template
https://github.com/kkmzero/mkfile
batch script template windows
Last synced: 4 months ago
JSON representation
Batch script for creating new files from template
- Host: GitHub
- URL: https://github.com/kkmzero/mkfile
- Owner: kkmzero
- License: mit
- Created: 2025-06-20T13:25:44.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-06-20T13:36:34.000Z (8 months ago)
- Last Synced: 2025-06-20T14:35:20.240Z (8 months ago)
- Topics: batch, script, template, windows
- Language: Batchfile
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Mkfile
Mkfile is simple batch script for creating new files from template with additional option for creating empty files. Mkfile supports all versions of Windows NT operating system with command interpreter cmd.exe.
## Installation and Setup
Copy mkfile folder anywhere you want and optionally add it to your PATH environment variable:
```bat
set path=D:\path\to\mkfile;%path%
```
You can set variable ```template_path``` in mkfile.bat to point to your own template file. If you have template file in the same folder as mkfile.bat then you can use ```%~dp0``` variable which will expand to drive letter and path of the script file:
```bat
set template_path="%~dp0my_template_file.txt"
```
... or you can simply modify/replace existing template file (template.txt) in the mkfile folder.
## Usage
You should be able to create files from template file with simple command:
```bat
mkfile myfile.cpp
```
You can use option /E to create an empty file:
```bat
mkfile myfile.cpp /E
```
Brief usage can be displayed either by not providing any options or by using /? option:
```bat
mkfile
mkfile /?
mkfile myfile.cpp /?
```
## License
Copyright (c) 2025 Ivan Kmeťo.
Licensed under the [MIT](LICENSE.txt) license.