Productivity Tip for Dealing with Frequent Work Revisions (using PowerShell)

Often, when I work on a project that requires a bunch of files to produce an output, be it a set of diagrams or documents or even sometimes code, I produce an output and then I tend to try a different idea by making changes to a bunch of files to see how something looks and then go back to how it was previously and try something else by changing the same or different set of files. You might do things the same way. It quickly gets super tedious to make changes to the files to bring back something I tried a while ago or to restore the work to a particular state that I liked, because you need to keep track of all the changes you made and do them again or undo them all-mostly manually. In such times, I tend to take back up of the whole directory or sub-directory with all its files and sub-directories. I used WinRAR and a quick key combination to add the current directory and create an archive with a timestamp based filename, I keep this archive aside with a label to identify if I need to restore later, sometimes I don’t even

Have you tried AutoHotkey tool

(Note: This blog post was originally published under my old domain(codesmiles.com), here. Web Archive link. AutoHotkey is a great FREE and open-source tool you can use to create hotkeys and assign them to commands that you can execute on your system. You are asked to create a script file with commands and then open it in the AutoHotkey program to use it. Commands are executed based on the hotkeys assigned to them in the script. In the script, you can specify simple commands like the one shown below. #n::Run Notepad The above command launches Notepad. # stands for Windows key, ^ for Control key, ! for Alt and + for shift You can find more commands and general usage info about AutoHotkey in the tutorial page here.