Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Tools/NEW Tools/TEMPLATES/bat_script_template.bat
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
39 lines (27 sloc)
676 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| :: <NAME> script | |
| :: <DESCRIPTION> | |
| :: Copyright © 2020 Bart³omiej Duda | |
| :: License: GPL-3.0 License | |
| :: Changelog: | |
| :: Ver Date Name | |
| :: v0.1 09.12.2020 Bartlomiej Duda | |
| @ECHO OFF | |
| echo <NAME> script by Bartlomiej Duda | |
| echo Starting program... | |
| echo. | |
| echo. | |
| setlocal enabledelayedexpansion | |
| SET ra_directory="D:\some_path\some_folder" | |
| SET extension=".ra" rem TODO | |
| rem This is comment | |
| echo Starting loop... | |
| for /f "tokens=* delims=" %%a in ('dir %ra_directory%\*.ra /s /b') do ( | |
| set ra_filename=%%a | |
| echo !ra_filename! | |
| set out_filename=!ra_filename:~0,-3! | |
| echo !out_filename! | |
| ".\DecompRA.exe" "!ra_filename!" "!out_filename!" | |
| del "!ra_filename!" | |
| echo. | |
| ) | |
| pause | |