top of page

Batch/Script Dictionary: Matchmaker's Paradise

Watch the demo video here.

​

Built using Python 3.

​

In the spirit of automation, I have linked every single one of my Python scripts to a Batch file of a shorter name so that I can run it from "Windows Key + R" quickly. But even when I first started with Python I knew that I would, eventually, have a lot of Python script/Batch file pairings that I would forget which Batch file was linked with which Python script.

​

Enter the Batch_File_and_Script_Dictionary.

​

As soon as I learned about dictionaries in Python, I knew this would be a perfect fit. At the time, I didn't know how I wanted to implement persistent storage, so I gave up. But now, this script has the capability of opening the dictionary text document and loading in all of the pairs on start up, displaying them all, has a search ability that returns the pair if you know the Batch file name or the Python script name, ability to add and delete entries, and rewrite the file accordingly.

​

This helps me keep track of all of pairings and provides me with a quick way to look up which Batch file is paired with which Python script by also being able to run this from "Windows Key + R".

© 2024 by Mason Stooksbury

  • LinkedIn Social Icon
  • GitHub-Mark-Light-32px
bottom of page