BatTool - 30th anniversary

Place for posting compiled applications and code snippets
Post Reply
User avatar
MaloK
Code Baker
Posts: 169
Joined: Sun 06 Jun, 2021 4:12 pm
Location: Canada

BatTool - 30th anniversary

Post by MaloK »

Hi,

BatTool is one of the very first Utility I have Written that is still holding it's place in my toolbox :smile:

This project Started in 1991, When the world was taken by storm by the release of Visual Basic 1.0, then was Ported to VB3 in 1994, then VB6 in 2000.
Since then, there has been no change to build 23

It was created to alleviate the many limitations command line software had at the moment. But Since I still use it regularly Today.
I tough Some of You might also find a use to it.

So... For it's 30th Anniversary, I tried to give it a more modern look :w00t:

It's NOT easy to use, but it has incredible flexibility. You can run any internal or external command to apply anything to any files. With lists control and counters, naming and extensions override, File Filters, 4 fields to insert arguments, output redirection. Live Command line preview as you build, Also have a manager to quickly Edit, Run, Delete batch files. Foreground or Background Batch execution... It's not the kind of application that get used everyday, but when the need arises, It's a powerful tool.

BatTool.jpg
BatTool.jpg (44.12 KiB) Viewed 18328 times

I Also attached Source code, for those who want a good laugh :heh:

Edit:
Most of the time. This Programs goal is to create one time use batch files, to apply... Many to one. One to many or One to one, commands.
Used For programs that doesn't support batch processing.

Example:
I used it many times on a BBs to create one batch to extract nfo files from Hundreds of zips at once. A second one to call a Qbasic script to replace the "Downloaded From" field in every nfo files. And a third to repack all nfo in their respective zips... Good old time :smile:

Or instead of copy/paste large path to a command prompt, then add arguments then copy/paste to add more large path, then copy/paste to add more arguments to a command line for testing...

Use BatTool to have permanent (as long as it runs) a modifiable and instant re-writable batch file (practical for stubborn command lines) Just click Generate...

The program has a very brute approach to inserted commands. So it can be easily tricked to do anything

I think I'm Getting old :mellow:
Attachments
BatToolsrc.7z
(35.57 KiB) Downloaded 635 times
BatTool.7z
(44.11 KiB) Downloaded 728 times
Last edited by MaloK on Wed 07 Jul, 2021 2:50 pm, edited 4 times in total.
User avatar
MaloK
Code Baker
Posts: 169
Joined: Sun 06 Jun, 2021 4:12 pm
Location: Canada

Re: BatTool - 30th anniversary

Post by MaloK »

And for it's 30th anniversary... it should run well also... :embarrassed:

After playing with more complicated modern commands, I noted that the automatic space insertion between command was causing troubles with complex commands... :ohmy:

...I removed that from code and was able to issue complex command with Dism and Xml Starlet with no problems

But now on (build24) <spaces> are required as part of argumentation :sad:
Last edited by MaloK on Sun 11 Jul, 2021 12:04 pm, edited 1 time in total.
User avatar
MaloK
Code Baker
Posts: 169
Joined: Sun 06 Jun, 2021 4:12 pm
Location: Canada

Re: BatTool - 30th anniversary

Post by MaloK »

All Fixed :smile:

Dism:

DismBt.jpg
DismBt.jpg (166.38 KiB) Viewed 18199 times

Code: Select all

"C:\Win10XPE\Projects\Tools\x64\DISM\dism.exe" /image:"C:\Win10XPE\Target" /get-intl
@pause
DismCmd.jpg
DismCmd.jpg (65.76 KiB) Viewed 18199 times
User avatar
MaloK
Code Baker
Posts: 169
Joined: Sun 06 Jun, 2021 4:12 pm
Location: Canada

Re: BatTool - 30th anniversary

Post by MaloK »

Xml:

XmlBt.jpg
XmlBt.jpg (182.23 KiB) Viewed 18199 times

Code: Select all

"C:\Win10XPE\Projects\Tools\xml.exe" ed -L -u "/Root/Key[1]/Key[2]/ValueKey[1][@Name='ActiveSkin']/@Value" -v "sex" "C:\Win10XPE_Main\ISO\Users\Default\AppData\Roaming\EMCO\Unlock IT\v5\AppRegistry.xml" "C:\Win10XPE_Main\Target\Users\Default\AppData\Roaming\EMCO\Unlock IT\v5\AppRegistry.xml"
@pause
XmlCmd.jpg
XmlCmd.jpg (45.75 KiB) Viewed 18199 times
Post Reply