Skip to content

MurageKabui/In2batch

Repository files navigation

GitHub file size in bytes GitHub license

In2batch Resource Wrapper

A Win32 console & GUI application that helps you generate a batch code that allows to wrap your resource files of any file types in a batch script easily, letting you to distribute your batch files without their dependencies, then recreate them on run.



Dependencies/Requirements

Program Description
CertUtil.exe CertUtil (CL) is a program installed as part of Windows OS Certificate Services. You can use Certutil to dump and display certification authority (CA) configuration information, configure Certificate Services, backup and restore CA components, and verify certificates, key pairs, and certificate chains. In this case , CertUtil is used to encode files to base64.

(CL) Syntax and Usage.

The program must be present in the path environment or alternatively a session should be started in a the working directory containing the CL-In2batch.dll executable file.

• The first argument should contain a FQPN (Full qualified path name) to the file you want to embed in your script. It may be multiple file or folder paths delimited using a semi colon ( ; ) for a multiple file operation.

CL-In2batch.dll /? or CL-In2batch.dll --? or CL-In2batch.dll -?

The above command will print the help information to the standard output on command prompt .

Optional parameters :

Parameters/Flag Function
/? or --? or -? Print the help information to the standard output. Example:
> CL-In2batch.dll /?
/version Print the current/build version number to the standard output. Example :
> CL-In2batch.dll -ver
/notify Including this flag causes a notification after the completion of each file operation. Notifications are not triggered by default unless this flag is included. Example :
> CL-In2batch.dll "folderABC;EULA.rtf" -notify
/funcname This parameter allows you to customize the function ID in your batch code. Example :
> CL-In2batch.dll "EULA.rtf" -funcname "create eula"
will result to a DOS callable function called :create_eula. Leaving out this parameter unused will force the program to generate a unique number instead.
/size Prints the sizes of every file in the semi-colon delimited files array parsed in the first argument .Folders are ignored! Example:
> CL-In2batch.dll "EULA.rtf;License.rtf" -size

Other flags :

Flag Function
-srg Including this flag causes the start region remark to be displayed in the generated batch code.
================= Start Region In2Batch CL-Generator ==================
Example:
CL-In2batch.dll "EULA.txt;License.rtf" -srg -erg /notify
-erg Including this flag causes the end region remark to be displayed in the generated batch code.
================ End Region In2Batch CL-Generator =================

In the following example, we are assuming that our working directory has File1.csv” “File2.txt” “Logo.icoand a directory namedBin which has 3 more files inside.""

 CL-In2batch.dll "EULA.rtf;Logo.ico;Bin" /notify | Clip

The above command generates batch code for File1.csv ,File2.txt , Logo.ico and all the 3 files present in the directory Bin. After each file operation a notification is triggered at the bottom right corner of our screen. The generated code is directly piped to our clipboard after the operation is complete.

CL-In2batch.dll "E:\Batchscripts\Bin" >>MybatchScript.bat

The above command generates the batch code to embed all the files present in the folder E:\Batchscripts\Bin and redirect the code to a file called MybatchScript.bat

NB

If you’ve ever hit the upper size limit somewhere beyond 350 kB for a single file then your Generated batch will break! This is a pending bug yet to be solved. Feel free to folk and make relevant contribution if need be!

For more batch scripting plugins visit: www.thebateam.org

About

A Resource wrapper for batch scripts.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages