BATCHLIB_ Batchlib package v1.0
Download
Batchlib package v1.0 (5 KB zip file)
What is it?
Inspired by my library idea, I created a package containing several libraries with subroutines that I need more or less often.
What Libraries are contained?
Currently, the following libraries are contained in the package:
How to use the libraries?
Place the libraries in a subdirectory named "lib" of your batch script(s). To call the subroutine :TRIM of the string.cmd library, use the following code:
License
This work is licensed under the Creative Commons Attribution-Noncommercial 2.0 Germany (Namensnennung-Keine kommerzielle Nutzung 2.0 Deutschland).
History
Batchlib package v1.0 (5 KB zip file)
What is it?
Inspired by my library idea, I created a package containing several libraries with subroutines that I need more or less often.
What Libraries are contained?
Currently, the following libraries are contained in the package:
- io.cmd: input and output subroutines
- number.cmd: number related subroutines
- string.cmd: string manipulation
How to use the libraries?
Place the libraries in a subdirectory named "lib" of your batch script(s). To call the subroutine :TRIM of the string.cmd library, use the following code:
SET MY_STRING= A string with spaces around the text CALL %~dps0lib\string.cmd :TRIM "%MY_STRING%" ECHO Trimmed string is '%RESULT%'.
License
This work is licensed under the Creative Commons Attribution-Noncommercial 2.0 Germany (Namensnennung-Keine kommerzielle Nutzung 2.0 Deutschland).
History
- v1.0 2008-03-29 First release
cypressor - 29. Mär, 18:15