Development

Programming, scripting. Code snips of my latest and greatest achievements.

Entries feed - Comments feed

2018.03.21

Multi-threaded port scanning in Delphi

Delphi 7There were several times when my team had to do a port scan in a commercial environment to discover rouge or lingering devices on the network. I always had troubles finding a portable, commercial-free, easy-to-use, fast and trusted application so I decided to write my own.

Continue reading...

2017.02.08

Delphi hexadecimal operations

Delphi 7I was recently working on a project where I had to work with huge numbers (>32 hexadecimal digits). Since not even the largest integer type was able to hold these, I had to come up with a solution to be able to do arithmetic functions on them.

Continue reading...

2017.01.14

Delphi 7 and Windows 10

Delphi 7I recently managed to crash my development machine so hard that not even a recovery was possible. After the OS the next thing to install was Delphi 7 and I had to face with the usual compatibility issues.
Had enough of researching, it's time to put all necessary steps at one place to make this 15-year-old software to work on a modern system, like Windows 10!

Continue reading...

2016.11.30

Windows Batch Scripting - Elevate.cmd

ScriptingI already made this mistake several times. UAC is turned on and I launch a Command Prompt to perform some activities. However, some actions will eventually fail as we don't have Administrative privileges.
In the past I launched a new Command Prompt (elevated, this time) and navigated back to the original folder to try again. Today I proudly present a script, which will do this for you!

Continue reading...

2016.01.22

Windows Batch Scripting - Counting Gigabytes

command prompt.png
Recently I was assigned to a task where I had to collect folder sizes (and do some math with them) on large number of servers. Talking about real file servers I quickly met the famous "Invalid number.  Numbers are limited to 32-bits of precision." message. Here's how I solved it.

Continue reading...

2016.01.21

Windows Batch Scripting - Displaying lines

command_prompt.pngProviding feedback for the user about the status of our scripts is really important. We would like to know if everything is fine - or if not, why? Let me show you some tricks which can take the well-known ECHO command a little bit further!

Continue reading...