The Cuckoo's Nest
50 Nuances de wipe
Band of Misfits
The Wild Hunt
The Wild Hunt
HTA Log Parser
This one was actually pretty hard for me to write, so I really hope, that someone will be able to use it. Practically, this is a parser of logs, that I create in other snippets with my
, but it is way more. For starters it also parsers logs produced by AMUR and UARM software. For advanced usage it also provides functionallity to sort and filter. A sample of the parser is used in my
In case of large logs
Copying and moving files in VBS is pretty easy, right? But what if you need to at least try to handle errors? Like, cases when files are read-only, for example. Or when source or destination is a folder (which does cause errors in some cases). Or maybe you need some flexibility. These 3 functions will assist with all of the above. You choose source and destination, whether to move file or just copy and whether to overwrite the destination, if such file already exists there. With
This piece of code is to be used along side with
and is, practically, useful only to compare .cfg files for AMUR and UARM software and nothing else. Such checks, are highly advisable, although are not enforced by Central Bank of Russia. This script uses my
. Also requires a .cfg file similar to other snippets.
This is a really simple function, but quite useful nevertheless due to its flexibility. In essence, this is a logging function (used by other HTA snippets of mine).
It requires several variables: logfile, logline, gui, append, msgtype.
Logfile is a path to a file to which we want to write something.
Logline is what we want to write.
GUI is, practically, a flag. If set to 1 or empty it will use Logline to output the same to script's interface (statusbar in my case). If set to any string - that string
This code is to be used in conjunction with
. It uses the hashlists generated by it and validates the files, logging everything and reporting mismatches using my
. It also uses a status bar (same as can be found in
This one is mainly useful for people working in Russian banks, but can be used by others as a basis, too.
Central Bank of Russia requires that a set of files need to be validated before running clearing software (and thus operations in it). Recommended software to do that is hashfile.exe by Validata (provided along with their crypto-software). Unfortunately, it's not really convenient to use it to get file hashes for a hundreds of files. This HTA code will solve this issue.
First of all it requires
Sometimes you may need to provide easy access to a set of scripts (batch files). You can always give access to a folder where .cmd and .bat files lie, but this will require to provide access to each file separately or to all of them at once. In some cases it's better to use a simple GUI like this (screenshot taken in 4K with scaling and does not represent real look):
This is an HTA file (Visual Basic Script with HTML), To correctly work it will also require a configuration file like this (domain