Consider using 7-Zip. It is free and here
You could encapsulate all your BAT files and SQL commands into a zip like this:
C:\> 7za a -t7z archive.7z *.BAT *.SQL
Then you can extract like this:
C:\> 7z e archive.7z
Alternatively you could make a self-extracting executable with it - which has the benefit you don't need any tools to extract it when you arrive at another server, but you may not be able to Email that. By the way, if you change the command to the following, Windows can read the archive itself natively so you don't need to install extraction software wherever you go with the file:
C:\> 7za a -tzip archive.zip *.BAT *.SQL
Or you could use the Microsoft CAB tool that will be present everywhere documentation.
That would look something like this if you wanted to gather *.BAT
and *.CMD
into a "cabinet" called BATplusSQL.cab
:
dir /b *.BAT *.CMD >files.txt
makecab /d "CabinetName1=BATplusSQL.cab" /f files.txt
del /q /f files.txt