Batch File Writer: My Personal DOS Scribe
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 creating this helpful Batch file takes some time. Sure, the batch file is only one line of code, but it's a really long line containing a few keywords and a really long path to get to my Python script.
So I automated it.
If I remember correctly, this was my first project I did on my own when I was learning Python. Here's how it works. When I run the program, I am asked two questions: First, "What is the name of the Python script?" I need this piece, because it automatically adds it into a hard-coded path. Secondly, I am asked, "What would you like to name your batch file?" The reason for this is two-fold. One, I need to make sure I don't have two batch files with the same name; otherwise, when I run "Windows Key + R" I might inadvertently run two scripts. And two, when this script finishes it creates the Batch file for me and puts it in my "BatchFiles" folder; so the answer to this question makes sure I don't duplicate a file name and then creates it if all is good to go.
The helpfulness of this script is unquestionable. I use it literally every time I create a new script; and because it is so easy, I often use it just to create files to go with my test scripts so I can be sure they work from IDLE and the Command Line.